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

MutationRegistry()

Properties

hashCode → int
The hash code for this object.
no setterinherited
keys → Iterable<String>
The registered keys, in registration order.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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, or null if 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 registration under its key.
toString() → String
A string representation of this object.
inherited

Operators

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