SimpleTextComponentBloc constructor
SimpleTextComponentBloc({
- SimpleTextRepository? simpleTextRepository,
Implementation
SimpleTextComponentBloc({this.simpleTextRepository})
: super(SimpleTextComponentUninitialized()) {
on<FetchSimpleTextComponent>((event, emit) {
_mapLoadSimpleTextComponentUpdateToState(event.id!);
});
on<SimpleTextComponentUpdated>((event, emit) {
emit(SimpleTextComponentLoaded(value: event.value));
});
}