NotificationDashboardComponentBloc constructor

NotificationDashboardComponentBloc({
  1. NotificationDashboardRepository? notificationDashboardRepository,
})

Implementation

NotificationDashboardComponentBloc({this.notificationDashboardRepository})
    : super(NotificationDashboardComponentUninitialized()) {
  on<FetchNotificationDashboardComponent>((event, emit) {
    _mapLoadNotificationDashboardComponentUpdateToState(event.id!);
  });
  on<NotificationDashboardComponentUpdated>((event, emit) {
    emit(NotificationDashboardComponentLoaded(value: event.value));
  });
}