DocumentSnapshot class
A DocumentSnapshot contains data read from a collection in the CARP web service
The data can be extracted with the data property or by using subscript syntax to access a specific field.
Properties
- collectionId → int
-
The id of the collection this document belongs to
no setter
-
collections
→ List<
String?> -
The list of collections nested inside this document.
no setter
- createdAt → DateTime
-
The timestamp of creation of this document
no setter
- createdByUserId → String
-
The id of the user who created this document
no setter
-
data
→ Map<
String, dynamic> -
Contains all the data of this snapshot
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The ID of the snapshot's document
no setter
- name → String
-
The name of the snapshot's document
no setter
- path → String
-
The full path to this document
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snapshot
→ Map<
String, dynamic> -
The full data snapshot
no setter
- updatedAt → DateTime
-
The timestamp of latest update of this document
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns
true
if the document exists.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → dynamic - Reads individual data values from the snapshot