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