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