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