call<ChangedT extends ResultT> abstract method
Passes a key to the mutation, which will be used to distinguish between different calls to the same mutation.
This works by checking ==
on the key. As such, if passing custom objects,
consider overriding ==
.
Alternatively, you can use a Record:
// Use two different values as key
ref.watch(mutation((todo.id, user.id)));
Implementation
@optionalTypeArgs
Mutation<ChangedT> call<ChangedT extends ResultT>(Object? key);