documentSnapshots<ID extends Object?, T extends Object?> method
Stream<DocumentSnapshot<ID, T> >
documentSnapshots<ID extends Object?, T extends Object?>(
- String collectionPath,
- 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));
}