findInOtherScope<T> method

T? findInOtherScope<T>(
  1. Qualifier? qualifier,
  2. ParametersDefinition? parameters
)

Implementation

T? findInOtherScope<T>(
    Qualifier? qualifier, ParametersDefinition? parameters) {
  T? instance;
  for (Scope scope in _linkedScope) {
    instance =
        scope.getOrNull<T>(qualifier: qualifier, parameters: parameters);
    if (instance != null) break;
  }
  return instance;
}