remove method
Removes and destroys mutation.
Implementation
void remove(Mutation<dynamic, dynamic, dynamic> mutation) {
if (!_mutations.remove(mutation)) return;
final scope = mutation.options.scope;
if (scope != null) {
final scoped = _scopes[scope]!;
scoped.remove(mutation);
if (scoped.isEmpty) _scopes.remove(scope);
}
mutation.destroy();
notify(MutationCacheEvent(MutationCacheEventType.removed, mutation));
}