GBAppNotificationProvider constructor

const GBAppNotificationProvider({
  1. Key? key,
  2. required Widget child,
  3. AppNotificationBloc? notificationBloc,
  4. NotificationFetchParamBuilderWithContext? fetchParamBuilder,
})

Implementation

const GBAppNotificationProvider({
  Key? key,
  required this.child,
  this.notificationBloc,
  this.fetchParamBuilder,
})  : assert(
        notificationBloc == null || fetchParamBuilder == null,
        "You cannot define 'notificationBloc' & 'fetchParamBuilder' at the same time",
      ),
      super(key: key);