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.

Sizin İçin Seçtik  What is the use of get in Flutter?

Leave a Reply

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