Thrown when an invalid provider (Provider or Type
) is passed in the
provider list to the Injector
.
Source
InvalidProviderError(provider) : this.withCustomMessage(provider, 'only instances of Provider and Type are allowed, got ${provider.runtimeType}');