DocumentSnapshot class

Implemented types

Constructors

DocumentSnapshot(FirestoreClient client, Map<String, dynamic>? json)

Properties

client FirestoreClient
final
data Map<String, dynamic>
no setter
dateCreate DateTime?
no setter
dateUpdated DateTime?
no setter
documentID String
Returns the ID of the snapshot's document
no setter
exists bool
Returns true if the document exists.
no setter
hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>?
final
path String?
no setter
reference DocumentReference
Gets a DocumentReference for the specified Firestore path.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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
operator [](String key) → dynamic
Reads individual values from the snapshot