useClass property

Type? useClass
final

Class whose constructor should be invoked when token is injected.

When omitted and token is a Type, this value is implicitly token:

// The same thing.
const Provider(Foo);
const Provider(Foo, useClass: Foo);

Implementation

final Type? useClass;