SimpleImageComponentBloc constructor

SimpleImageComponentBloc({
  1. SimpleImageRepository? simpleImageRepository,
})

Implementation

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