documentChanges abstract method

  1. @Deprecated('Use defaultCollection.documentChanges instead.')
Stream<DocumentChange> documentChanges(
  1. String id
)

Returns a Stream to be notified of changes to the Document with the given id.

This is an alternative stream based API for the addDocumentChangeListener API.

AsyncListenStream

If the stream is missing changes, check if the returned stream is an AsyncListenStream. This type of stream needs to perform some async work to be fully listening. You can wait for that moment by awaiting AsyncListenStream.listening.

Implementation

@Deprecated('Use defaultCollection.documentChanges instead.')
Stream<DocumentChange> documentChanges(String id);