MutationRef class final
A "ref" to be used within Mutation.run.
By using this ref instead of the usual Ref/WidgetRef
, this enables
Mutation.run to be do things such as:
- Keeping providers alive for the
run
duration. - Closing any pending subscriptions specific to
run
after it completes.
See also:
- get, the primary way to interact with providers within Mutation.run.
- Annotations
-
- @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 maintains a subscription to it until the transaction 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