snapshots method

Stream<DocumentSnapshot> snapshots({
  1. bool includeMetadataChanges = false,
})

Notifies of document updates at this location.

An initial event is immediately sent, and further events will be sent whenever the document is modified.

Implementation

Stream<DocumentSnapshot> snapshots({bool includeMetadataChanges = false}) =>
    _delegate.snapshots(includeMetadataChanges: includeMetadataChanges).map(
        (delegateSnapshot) =>
            DocumentSnapshot._(firestore, delegateSnapshot));