# GridComponentBloc constructor Null safety

GridComponentBloc(

1. {GridRepository? gridRepository}

)

## Implementation

    GridComponentBloc({this.gridRepository})
        : super(GridComponentUninitialized()) {
      on<FetchGridComponent>((event, emit) {
        _mapLoadGridComponentUpdateToState(event.id!);
      });
      on<GridComponentUpdated>((event, emit) {
        emit(GridComponentLoaded(value: event.value));
      });
    }