scoped method

Observable? scoped(
  1. Scope? scope,
  2. String? key
)

Implementation

Observable? scoped(Scope? scope, String? key)
{
  if ((scope == null) || (S.isNullOrEmpty(key))) return null;
  if (scope.observables.containsKey(key)) return scope.observables[key];
  return scoped(scope.parent, key);
}