What are events in BLoC Flutter?

BLoC uses the concept of Streams, or Reactive programming. This means that when a stream of events is created, subscribers can listen in on the stream of events . The subscribers are notified of new data when it is emitted into the stream. Widgets in Flutter use this stream for communication and sending data.

Read more

What are Bloc events?

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.

Read more

What is BlocSupervisor?

BlocSupervisor oversees Bloc s and delegates to BlocDelegate . BlocDelegate handles events from all Bloc s which are delegated by the BlocSupervisor . Can be used to intercept all Bloc events, transitions, and errors. It is a great way to handle logging/analytics as well as error handling universally.

Read more