DocumentReference class

Inheritance

Constructors

DocumentReference(FirestoreGateway gateway, String path)

Properties

exists Future<bool>
Check if a document exists.
read-only
fullPath String
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
read-only, inherited
path String
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stream Stream<Document>
read-only

Methods

collection(String id) CollectionReference
create(Map<String, dynamic> map) Future<Document>
Create a document if it doesn't exist, otherwise throw exception.
delete() Future<void>
Deletes a document.
get() Future<Document>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
set(Map<String, dynamic> map) Future<void>
Create or update a document. In the case of an update, any fields not referenced in the payload will be deleted.
toString() String
Returns a string representation of this object.
inherited
update(Map<String, dynamic> map) Future<void>
Create or update a document. In case of an update, fields not referenced in the payload will remain unchanged.

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited