DocSnapshot<D extends DocData> class
DocumentSnapshot
Constructors
-
DocSnapshot(DocRef<
D> ref, D? data, SnapshotMetadata metadata)
Properties
- data → D?
-
Contains all the data of this snapshot.
final
- exists → bool
-
Returns
true
if the document exists.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Returns the ID of the snapshot's document
no setter
- metadata → SnapshotMetadata
-
Metadata about a snapshot, describing the state of the snapshot.
final
- path → String
-
Slash-delimited path representing the database location of this query.
no setter
-
ref
→ DocRef<
D> -
The reference that produced this snapshot
final
- 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.
override