FactoryProvider<T extends Object>.forToken constructor

const FactoryProvider<T extends Object>.forToken(
  1. OpaqueToken<T> token,
  2. Function useFactory, {
  3. List<Object>? deps,
})

Implementation

const factory FactoryProvider.forToken(
  OpaqueToken<T> token,
  Function useFactory, {
  List<Object>? deps,
}) = FactoryProvider<T>._;