BookletComponentBloc constructor

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