AssignmentViewComponentBloc constructor

AssignmentViewComponentBloc({
  1. AssignmentViewRepository? assignmentViewRepository,
})

Implementation

AssignmentViewComponentBloc({this.assignmentViewRepository})
    : super(AssignmentViewComponentUninitialized()) {
  on<FetchAssignmentViewComponent>((event, emit) {
    _mapLoadAssignmentViewComponentUpdateToState(event.id!);
  });
  on<AssignmentViewComponentUpdated>((event, emit) {
    emit(AssignmentViewComponentLoaded(value: event.value));
  });
}