notificationsApiNotifierProvider top-level property

AutoDisposeStateNotifierProvider<NotificationsNotifier, PagedValue<NotificationDTO>> notificationsApiNotifierProvider
final

** Notification list providers ** Provides the notifications from the remote Energy Management backend

Implementation

/// Provides the notifications from the remote Energy Management backend
final notificationsApiNotifierProvider = StateNotifierProvider.autoDispose<
    NotificationsNotifier, PagedValue<NotificationDTO>>(
  (ref) {
    final api = ref.watch(energyManagementV3ApiProvider).valueOrNull;
    return NotificationsNotifier(api);
  },
);