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