Transaction class

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

Constructors

Transaction(Firestore _firestore, String _transactionId)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(DocumentReference<Map<String, dynamic>> docRef) Transaction
Deletes the document referred by the provided docRef.
get<T>(DocumentReference<T> docRef) Future<DocumentSnapshot<T>>
Reads the document referenced by the provided docRef.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set<T>(DocumentReference<T> docRef, T data) Transaction
Sets fields provided in data for the document referred to by docRef.
toString() String
A string representation of this object.
inherited
update(DocumentReference docRef, Map<Object?, Object?> data, [Precondition? precondition]) Transaction
Updates fields provided in data for the document referred to by docRef.

Operators

operator ==(Object other) bool
The equality operator.
inherited