onSuccess property
Runs when the mutation function succeeds, after the cache-wide
MutationCache.onSuccess and before the result reports success. A
returned future is awaited. Throwing here turns the success into an
error. No default.
Implementation
final OnMutationSuccess<TData, TVariables, TOnMutateResult>? onSuccess;