DocumentComponentBloc constructor
DocumentComponentBloc({
- DocumentRepository? documentRepository,
Implementation
DocumentComponentBloc({this.documentRepository})
: super(DocumentComponentUninitialized()) {
on<FetchDocumentComponent>((event, emit) {
_mapLoadDocumentComponentUpdateToState(event.id!);
});
on<DocumentComponentUpdated>((event, emit) {
emit(DocumentComponentLoaded(value: event.value));
});
}