SnapshotMetadata class Null safety
Metadata about a snapshot, describing the state of the snapshot.
- fromCache ↔ bool
trueif the snapshot was created from cached data rather than guaranteed up-to-date server data. If your listener has opted into metadata updates (onDocumentMetadataSnapshot, onQueryMetadataSnapshot or onMetadataSnapshot) you will receive another snapshot with fromCache set to
falseonce the client has received up-to-date data from the backend.read / write
- hashCode → int
The hash code for this object. [...]
- hasPendingWrites ↔ bool
trueif the snapshot includes local writes (set() or update() calls) that haven't been committed to the backend yet. If your listener has opted into metadata updates via onDocumentMetadataSnapshot, onQueryMetadataSnapshot or onMetadataSnapshot, you receive another snapshot with hasPendingWrites set to
falseonce the writes have been committed to the backend.read / write
- runtimeType → Type
A representation of the runtime type of the object.
SnapshotMetadata other) → bool
trueif this SnapshotMetadata is equal to the provided one.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
A string representation of this object. [...]