Provider<T extends Object> constructor

const Provider<T extends Object>(
  1. Object token, {
  2. Type? useClass,
  3. Object useValue,
  4. Object? useExisting,
  5. Function? useFactory,
  6. List<Object>? deps,
})

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:

Implementation

const factory Provider(
  Object token, {
  Type? useClass,
  Object useValue,
  Object? useExisting,
  Function? useFactory,
  List<Object>? deps,
}) = Provider<T>._;