DividerComponentBloc constructor

DividerComponentBloc({
  1. DividerRepository? dividerRepository,
})

Implementation

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