# SimpleTextComponentBloc constructor Null safety

SimpleTextComponentBloc(

1. {SimpleTextRepository? simpleTextRepository}

)

## Implementation

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