documentChanges property

Stream<T?> get documentChanges

Returns a stream of the document changes. This stream will emit the current document immediately, and then emit any changes to the document.

Implementation

Stream<T?> get documentChanges => selfDocument.snapshots().map((event) => event.data());