requireProvider method
Implementation
EnvironmentInstanceProvider requireProvider(Type type) {
final provider = providers[type];
if (provider == null) {
throw DIRegistrationException('Provider for $type is not defined');
}
if (_path.contains(provider)) {
throw DIRegistrationException(cycleReport(provider as EnvironmentInstanceProvider));
}
return provider as EnvironmentInstanceProvider;
}