NotificationComponentBloc constructor
NotificationComponentBloc({
- NotificationRepository? notificationRepository,
Implementation
NotificationComponentBloc({this.notificationRepository})
: super(NotificationComponentUninitialized()) {
on<FetchNotificationComponent>((event, emit) {
_mapLoadNotificationComponentUpdateToState(event.id!);
});
on<NotificationComponentUpdated>((event, emit) {
emit(NotificationComponentLoaded(value: event.value));
});
}