NotificationComponentBloc constructor

NotificationComponentBloc({
  1. NotificationRepository? notificationRepository,
})

Implementation

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