snapshots method

  1. @override
Stream<DocumentSnapshot<Map<String, dynamic>>> snapshots({
  1. bool includeMetadataChanges = false,
})
override

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

@override
Stream<DocumentSnapshot<Map<String, dynamic>>> snapshots({
  bool includeMetadataChanges = false,
}) =>
    _snapshots == null
        ? throw UnimplementedError(
            'You must supply snapshots to the constructor of '
            'DocumentReferenceFake')
        : _snapshots!;