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