DialogComponentBloc constructor
DialogComponentBloc({
- DialogRepository? dialogRepository,
Implementation
DialogComponentBloc({this.dialogRepository})
: super(DialogComponentUninitialized()) {
on<FetchDialogComponent>((event, emit) {
_mapLoadDialogComponentUpdateToState(event.id!);
});
on<DialogComponentUpdated>((event, emit) {
emit(DialogComponentLoaded(value: event.value));
});
}