SnapshotMetadata class Null safety

Metadata about a snapshot, describing the state of the snapshot.

See: firebase.google.com/docs/reference/js/firebase.firestore.SnapshotMetadata.

Annotations

Constructors

SnapshotMetadata()

Properties

fromCache bool
true if 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 false once the client has received up-to-date data from the backend.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasPendingWrites bool
true if 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 false once the writes have been committed to the backend.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

isEqual(SnapshotMetadata other) bool
Returns true if this SnapshotMetadata is equal to the provided one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited