mapEventToState method
@Deprecated - Use on
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.
mapEventToState can yield
zero, one, or multiple states for an event.
Implementation
@override
Stream<MeState> mapEventToState(
MeEvent event,
) async* {
if (event is MeSetWebcamInProgress) {
yield* _mapMeSetWebCamInProgressToState(event);
}
if (event is MePresenterModeAddConsumer) {
yield* _mapMePresenterAddConsumerToState(event);
}
if (event is MePresenterModeRemoveConsumer) {
yield* _mapMePresenterRemoveConsumerToState(event);
}
}