PresentationComponentBloc constructor Null safety

PresentationComponentBloc(
  1. {PresentationRepository? presentationRepository}
)

Implementation

PresentationComponentBloc({this.presentationRepository})
    : super(PresentationComponentUninitialized()) {
  on<FetchPresentationComponent>((event, emit) {
    _mapLoadPresentationComponentUpdateToState(event.id!);
  });
  on<PresentationComponentUpdated>((event, emit) {
    emit(PresentationComponentLoaded(value: event.value));
  });
}