SnapshotMetadata class abstract
Metadata about a snapshot, describing the state of the snapshot.
See: firebase.google.com/docs/reference/js/firebase.firestore.SnapshotMetadata.
- Annotations
-
- @JS()
Constructors
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 tofalse
once the client has received up-to-date data from the backend.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- 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 tofalse
once the writes have been committed to the backend.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isEqual(
SnapshotMetadata other) → bool -
Returns
true
if this SnapshotMetadata is equal to the provided one. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited