MutationTransaction class final
A transaction object used within Mutation.run.
Use get to imperatively read a provider while the mutation is pending. Providers accessed this way remain alive for the duration of the mutation.
- Annotations
-
- @Deprecated('You can now use `ref.read` directly inside `Mutation.run`')
- @publicInMutations
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
-
get<
StateT> (ProviderListenable< StateT> listenable) → StateT - Reads the current state of a listenable and keeps it alive until the enclosing mutation completes.
-
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