documentSnapshots<ID extends Object?, T extends Object?> method

  1. @override
Stream<DocumentSnapshot<ID, T>> documentSnapshots<ID extends Object?, T extends Object?>(
  1. String collectionPath,
  2. ID documentId
)
override

Notifies of document updates at this location.

Implementation

@override
Stream<DocumentSnapshot<ID, T>>
    documentSnapshots<ID extends Object?, T extends Object?>(
        String collectionPath, ID documentId) {
  // TODO: make sure updates are emmited to the stream
  // TODO: maybe periodical refetching of data?
  return Stream.fromFuture(getDocument(collectionPath, documentId));
}