Events and States
Learn the difference between events and states, and learn how BLoC architecture converts events to states.
We'll cover the following...
The BLoC pattern is all about messages flowing from the UI to the BLoC (events) and vice versa (states).
Press + to interact
Events
Events are pieces of data that are emitted by a source, usually to carry a message or signal a change. Events are crucial in Flutter applications, and they are used in many different scenarios:
Handle user interactions: When a user interacts with a widget, it can emit an event that signals that the interaction has occurred. For example, when a user selects an item from a ...