notificationInboxProvider top-level property

StreamProvider<List<InboxNotification>> notificationInboxProvider
final

Implementation

final notificationInboxProvider =
    StreamProvider<List<InboxNotification>>((ref) async* {
  await for (final snapshot
      in ref.read(firestoreServiceProvider).getNotifications()) {
    yield snapshot.data() ?? <InboxNotification>[];
  }
});