Provider<T extends Object> constructor
const
Provider<T extends Object> (})
Configures a Provider based on the arguments provided.
NOTE: This constructor is soft deprecated. It is considered best practice to use named variants of this class, such as the following:
useClass
-> ClassProvideruseValue
-> ValueProvideruseFactory
-> FactoryProvideruseExisting
-> ExistingProvider
Implementation
const factory Provider(
Object token, {
Type? useClass,
Object useValue,
Object? useExisting,
Function? useFactory,
List<Object>? deps,
}) = Provider<T>._;