BlockingComponentBloc constructor
BlockingComponentBloc({
- BlockingRepository? blockingRepository,
Implementation
BlockingComponentBloc({this.blockingRepository})
: super(BlockingComponentUninitialized()) {
on<FetchBlockingComponent>((event, emit) {
_mapLoadBlockingComponentUpdateToState(event.id!);
});
on<BlockingComponentUpdated>((event, emit) {
emit(BlockingComponentLoaded(value: event.value));
});
}