DynamicWidgetComponentBloc constructor

DynamicWidgetComponentBloc({
  1. DynamicWidgetRepository? dynamicWidgetRepository,
})

Implementation

DynamicWidgetComponentBloc({this.dynamicWidgetRepository})
    : super(DynamicWidgetComponentUninitialized()) {
  on<FetchDynamicWidgetComponent>((event, emit) {
    _mapLoadDynamicWidgetComponentUpdateToState(event.id!);
  });
  on<DynamicWidgetComponentUpdated>((event, emit) {
    emit(DynamicWidgetComponentLoaded(value: event.value));
  });
}