What is event in BLoC Flutter?

Bloc is similar to Cubit , but it uses events to do all its work. Like Cubit , the state is held in the Bloc , then to change or add new state, events are added to the Bloc . When an event is added to the Bloc , the onEvent method is called. After this onEvent method is called, a transform events method is called.

Sizin İçin Seçtik  How do you call API in Flutter using bloc?

Leave a Reply

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