What is BlocConsumer in Flutter?

BlocConsumer exposes a builder and listener in order react to new states . BlocConsumer is analogous to a nested BlocListener and BlocBuilder but reduces the amount of boilerplate needed. BlocConsumer should only be used when it is necessary to both rebuild UI and execute other reactions to state changes in the bloc.

Read more

Where is Cubit used?

Cubit is a subset of the BLoC Pattern package that does not rely on events and instead uses methods to emit new states. So, we can use Cubit for simple states , and as needed we can use the Bloc. what is the meaning of a complex state? in which situation we can’t use Cubit, can You explain?

Read more