ProviderException.duplicateRegistration constructor
ProviderException.duplicateRegistration({
- required Type type,
- StackTrace? trace,
Thrown when a provider is registered more than once.
Example:
throw ProviderException.duplicateRegistration(type: MyProvider);
Implementation
factory ProviderException.duplicateRegistration({
required Type type,
StackTrace? trace,
}) {
return ProviderException(
type: type,
message: 'Duplicate provider registration of $type',
trace: trace,
);
}