PresentationComponentBloc constructor

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));
  });
}