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
read-only
collections → List<String>
read-only
createdAt → DateTime
The timestamp of creation of this document
read-only
createdByUserId → String
The id of the user who created this document
read-only
data → Map<String, dynamic>
Contains all the data of this snapshot
read-only
exists → bool
Returns true if the document exists.
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
id → int
The ID of the snapshot's document
read-only
name → String
The name of the snapshot's document
read-only
path → String
The full path to this document
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
snapshot → Map<String, dynamic>
The full data snapshot
read-only
updatedAt → DateTime
The timestamp of latest update of this document
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited
operator [](String key) → dynamic
Reads individual data values from the snapshot