DocumentComponentBloc constructor

DocumentComponentBloc({
  1. DocumentRepository? documentRepository,
})

Implementation

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