MutationRegistry class final
The mutations a client knows by key.
A call site opts in with MutationOptions(mutationKey: ...) and passes no
mutator: the registered one runs instead. Register every key at startup,
before any call site uses it.
Constructors
Properties
Methods
-
contains(
String key) → bool -
Whether a mutation is registered under
key. -
lookup<
TData, TVariables> (String key) → MutationRegistration< TData, TVariables> ? -
Returns the registration for
key, ornullif none exists. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
TData, TVariables> (MutationRegistration< TData, TVariables> registration) → void -
Registers
registrationunder its key. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited