MissingMutationFunctionError class final Errors

Thrown when a mutation runs without a function: neither MutationOptions.mutationFn nor mutationFnWithContext was set, and no default was registered for its key with QueryClient.setMutationDefaults. The mutation fails with it at once, without retrying.

Implemented types

Constructors

MissingMutationFunctionError(QueryKey? mutationKey)
Creates the error for mutationKey, which may be null for an unkeyed mutation.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
mutationKey → QueryKey?
The key of the mutation that had no function to run, if it had one.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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