Transaction class Null safety

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<Object?> documentReference) Transaction
Deletes the document referred to by the provided documentReference.
get<T extends Object?>(DocumentReference<T> documentReference) Future<DocumentSnapshot<T>>
Reads the document referenced by the provided DocumentReference.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
set<T>(DocumentReference<T> documentReference, T 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<Object?> 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.