mapEventToState method
- @Deprecated('Use on<Event> instead. Will be removed in v8.0.0')
- VerificationEvent event
inherited
@Deprecated - Use on
Must be implemented when a class extends Bloc
.
mapEventToState
is called whenever an event
is add
ed
and is responsible for converting that event
into a new state
.
mapEventToState
can yield
zero, one, or multiple states for an event.
Implementation
@Deprecated('Use on<Event> instead. Will be removed in v8.0.0')
Stream<State> mapEventToState(Event event) async* {}