QueryDocumentSnapshot<T> class

Inheritance

Properties

createTime → Timestamp
no setteroverride
exists → bool
True if the document exists.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
The ID of the document for which this DocumentSnapshot contains data.
no setterinherited
readTime → Timestamp?
finalinherited
ref → DocumentReference<T>
A DocumentReference for the document stored in this snapshot.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updateTime → Timestamp
no setteroverride

Methods

data() → T
Retrieves all fields in the document as an object. Returns 'undefined' if the document doesn't exist.
override
get(Object field) → Optional<Object?>?
Retrieves the field specified by field.
inherited
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