SimpleImageComponentBloc constructor
SimpleImageComponentBloc({
- SimpleImageRepository? simpleImageRepository,
Implementation
SimpleImageComponentBloc({this.simpleImageRepository})
: super(SimpleImageComponentUninitialized()) {
on<FetchSimpleImageComponent>((event, emit) {
_mapLoadSimpleImageComponentUpdateToState(event.id!);
});
on<SimpleImageComponentUpdated>((event, emit) {
emit(SimpleImageComponentLoaded(value: event.value));
});
}