Implementing BLoC Events

Learn how to create events classes using the flutter_bloc library

The events are used to trigger state changes in the likes_bloc. They are emitted by elements in the widget tree.

Press + to interact
Overview of the likes events
Overview of the likes events

The LikesEvents class

The LikesEvents class is an abstract class that every other event related to likes will extend.

Press + to interact
abstract class LikesEvents {}
...