What is BlocConsumer 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

What is provider and BLoC in Flutter?

This is a direct application of the declarative approach which Flutter strongly emphasizes i.e. UI = f (state). BLoC is a place where events from the user interface go . Within this layer, as a result of applying business rules to a given event, BLoC responds with a specific state, which then goes back to the UI.

Read more