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;
  }
}