DocumentSnapshotFeed class
Reports the snapshots a set of documents take, once started.
A registry tracks each document it opens and untracks it when it lets go. Nothing is watched before start.
Constructors
- DocumentSnapshotFeed()
- Creates a feed that watches nothing yet.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snapshots
→ Stream<
ServerSnapshot> -
The snapshots the tracked documents take, once start has run.
no setter
Methods
-
close(
) → Future< void> - Stops watching and ends the stream.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
{FutureOr< void> onSnapshot(ServerSnapshot snapshot)?}) → void - Starts watching the tracked documents. Calling it again does nothing.
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
String documentId, CRDTDocument document) → void -
Reports the snapshots
documenttakes, asdocumentId, once started. -
untrack(
String documentId) → Future< void> -
Stops reporting the snapshots of
documentId.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited