canRun method
Whether mutation is first in its serial scope.
Implementation
bool canRun(Mutation<dynamic, dynamic, dynamic> mutation) {
if (mutation._destroyed) return false;
final scope = mutation.options.scope;
if (scope == null) return true;
final scoped = _scopes[scope];
if (scoped == null) return false;
for (final pending in scoped) {
if (pending.state.isPending) return identical(pending, mutation);
}
return true;
}