QueryDocumentSnapshotFake class

Documented

Constructors

QueryDocumentSnapshotFake(Map<String, dynamic> _data, [DocumentReference<Map<String, dynamic>>? _reference])

Properties

exists bool
Returns true if the document exists.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
This document's given ID for this snapshot.
no setteroverride
metadata → SnapshotMetadata
Metadata about this document concerning its source and if it has local modifications.
no setteroverride
reference → DocumentReference<Map<String, dynamic>>
Returns the reference of this snapshot.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

data() Map<String, dynamic>
Contains all the data of this document snapshot.
override
get(Object field) → dynamic
Gets a nested field by String or FieldPath from this DocumentSnapshot.
override
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 [](Object field) → dynamic
Gets a nested field by String or FieldPath from this DocumentSnapshot.
override