DividerComponentBloc constructor
DividerComponentBloc({
- DividerRepository? dividerRepository,
Implementation
DividerComponentBloc({this.dividerRepository})
: super(DividerComponentUninitialized()) {
on<FetchDividerComponent>((event, emit) {
_mapLoadDividerComponentUpdateToState(event.id!);
});
on<DividerComponentUpdated>((event, emit) {
emit(DividerComponentLoaded(value: event.value));
});
}