DocumentSnapshotUpdated class final
The document's snapshot is now snapshot.
It always arrives before the DocumentHistoryPruned its own version causes, so a consumer that writes on every event stores the snapshot before dropping the changes it covers.
- Inheritance
-
- Object
- CRDTDocumentEvent
- DocumentSnapshotUpdated
Constructors
- DocumentSnapshotUpdated({required Snapshot snapshot, required SnapshotReason reason, Object? origin})
-
Creates the event that reports
snapshot.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- origin → Object?
-
origin is reported on the HandlerDelta events this produces, and is
nullwhen none is given. Pass the object a consumer tags its own writes with, so it can skip its own echo; a HandlerReset carries none. A nested call that names none keeps the origin of the outer one.final - reason → SnapshotReason
-
Which call replaced the snapshot.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → Snapshot
-
The snapshot the document now holds.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited