mapEventToState method Null safety
- Event event
Must be implemented when a class extends Bloc.
mapEventToState is called whenever an
event is added
and is responsible for converting that
event into a new state.
yield zero, one, or multiple states for an event.
Stream<State> mapEventToState(Event event);