Transaction class

Transaction class which is created from a call to runTransaction().


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


delete(DocumentReference documentReference) Transaction
Deletes the document referred to by the provided documentReference.
get(DocumentReference documentReference) Future<DocumentSnapshot>
Reads the document referenced by the provided DocumentReference. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
set(DocumentReference documentReference, Map<String, dynamic> data, [SetOptions options]) Transaction
Writes to the document referred to by the provided DocumentReference. If the document does not exist yet, it will be created. If you pass SetOptions, the provided data can be merged into the existing document.
toString() String
A string representation of this object. [...]
update(DocumentReference documentReference, Map<String, dynamic> data) Transaction
Updates fields in the document referred to by documentReference. The update will fail if applied to a document that does not exist.


operator ==(Object other) bool
The equality operator. [...]