SnapshotOptions class
Options that configure how data is retrieved from a DocumentSnapshot, for example how pending server timestamps are returned. Passed to FirestoreDataConverter.fromFirestore.
The SDK creates them from the ServerTimestampBehavior given to
DocumentSnapshot.data (default ServerTimestampBehavior.none).
This is the JS SDK's SnapshotOptions.
Constructors
- SnapshotOptions({ServerTimestampBehavior serverTimestamps = ServerTimestampBehavior.none})
-
Creates the options; by default pending server timestamps are read as
null.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverTimestamps → ServerTimestampBehavior
-
How a server timestamp that has not been resolved yet is returned.
final
Methods
-
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