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.

Sizin İçin Seçtik  What is Flutter BLoC provider?

Leave a Reply

Your email address will not be published. Required fields are marked *