onMutationError method

  1. @override
void onMutationError(
  1. Mutation mutation,
  2. StackTrace stackTrace
)
override

Called if a mutation error happens.

Implementation

@override
void onMutationError(
  Mutation<dynamic, dynamic> mutation,
  StackTrace stackTrace,
) {
  _emit("mutation_error", {"key": mutation.key});
}