resolveInstance<T> method
Implementation
T resolveInstance<T>(Qualifier? qualifier, Type runtimeType,
ParametersDefinition? parameters) {
final IndexKey key = generateKey(runtimeType, qualifier);
T? instance = _instanceRegistry.resolveInstance(key, parameters) ??
getFromSource() ??
_parameters?.getTypeOrNull() ??
findInOtherScope(qualifier, parameters);
if (null == instance) {
throw Exception('no instance found for $key on scope ${toString()}');
}
return instance;
}