named method
Implementation
Observable? named(Observable? target, String? scopeId, String? observableKey)
{
// Find Scope
Scope? scope = _directory.containsKey(scopeId) ? _directory[scopeId]!.last : null;
// Find Observable in Scope
Observable? observable;
if (scope != null) observable = scope.observables.containsKey(observableKey) ? scope.observables[observableKey] : null;
// Not Found
if ((observable == null) && (target != null) && (target.scope != null))
{
// Create New Unresolved
unresolved ??= HashMap<String?, List<Observable>>();
// Create New Unresolved Scope
if (!unresolved!.containsKey(scopeId)) unresolved![scopeId] = [];
// Create New Unresolved Scope Target
if (!unresolved![scopeId]!.contains(target)) unresolved![scopeId]!.add(target);
}
return observable;
}