TransactionResult class final
What DatabaseReference.runTransaction completes with when the transaction did not fail.
- Annotations
Constructors
- TransactionResult({required bool committed, required DataSnapshot snapshot})
-
Creates a result, for a fake or a test;
DatabaseReference.runTransactionmakes the client's own.const
Properties
- committed → bool
-
True when the server accepted the handler's value; false when the handler aborted.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → DataSnapshot
-
The location's data after the transaction: the committed value, or on abort the value the handler
last saw. In a committed value,
ServerValueplaceholders hold the client's estimate, not the value the server stored, and a write made after the transaction may already have replaced the value.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited