call abstract method

Mutation<ResultT> call(
  1. Object? key
)

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

Mutation<ResultT> call(Object? key);