MonaStyleAttributesComponentBloc constructor

MonaStyleAttributesComponentBloc({
  1. MonaStyleAttributesRepository? monaStyleAttributesRepository,
})

Implementation

MonaStyleAttributesComponentBloc({this.monaStyleAttributesRepository})
    : super(MonaStyleAttributesComponentUninitialized()) {
  on<FetchMonaStyleAttributesComponent>((event, emit) {
    _mapLoadMonaStyleAttributesComponentUpdateToState(event.id!);
  });
  on<MonaStyleAttributesComponentUpdated>((event, emit) {
    emit(MonaStyleAttributesComponentLoaded(value: event.value));
  });
}