remove method

dynamic remove(
  1. Scope scope
)

Implementation

remove(Scope scope) {
  if ((directory.containsKey(scope.id)) &&
      (directory[scope.id]!.contains(scope))) {
    directory[scope.id]!.remove(scope);
  }
  if (unresolved != null) {
    unresolved!.removeWhere((scopeId, observable) => scopeId == scope.id);
    if (unresolved!.isEmpty) unresolved = null;
  }
}