What is Bloc listener in Flutter?

BlocListener is a Flutter widget which takes a BlocWidgetListener and an optional bloc and invokes the listener in response to state changes in the bloc . It should be used for functionality that needs to occur once per state change such as navigation, showing a SnackBar , showing a Dialog , etc…

Read more

What is hydrated bloc?

hydrated_bloc 8.1. An extension to the bloc state management library which automatically persists and restores bloc states . An extension to package:bloc which automatically persists and restores bloc and cubit states. Built to work with package:bloc.

Read more

What is BLoC builder?

BlocBuilder is a Flutter widget which requires a bloc and a builder function . BlocBuilder handles building the widget in response to new states. BlocBuilder is very similar to StreamBuilder but has a more simple API to reduce the amount of boilerplate code needed.

Read more

What is meant by Clean Architecture?

Clean architecture is a software design philosophy that separates the elements of a design into ring levels . An important goal of clean architecture is to provide developers with a way to organize code in such a way that it encapsulates the business logic but keeps it separate from the delivery mechanism.

Read more