# BookletComponentBloc constructor Null safety

BookletComponentBloc(

1. {BookletRepository? bookletRepository}

)

## Implementation

    BookletComponentBloc({this.bookletRepository})
        : super(BookletComponentUninitialized()) {
      on<FetchBookletComponent>((event, emit) {
        _mapLoadBookletComponentUpdateToState(event.id!);
      });
      on<BookletComponentUpdated>((event, emit) {
        emit(BookletComponentLoaded(value: event.value));
      });
    }