getNotifications method

Stream<DocumentSnapshot<List<InboxNotification>?>> getNotifications()

Returns a stream of notifications.

Implementation

Stream<DocumentSnapshot<List<InboxNotification>?>> getNotifications() {
  return instance
      .collection('inbox')
      .doc('inbox')
      .withConverter<List<InboxNotification>?>(
    fromFirestore: (snapshot, _) => parseNotifications(snapshot),
    toFirestore: (_, __) => {},
  )
      .snapshots();
}