inject<T extends Object> abstract method
void
inject<T extends Object>(
- InstanceFunction<
T> instance, { - InjectionType type = InjectionType.singleton,
- bool overrideInstance = false,
Inject a factory
By default, the injection type will be InjectionType.singleton If an instance is already injected and you wan't to override it you may wan't to replace it with the overrideInstance flag.
Implementation
void inject<T extends Object>(InstanceFunction<T> instance,
{InjectionType type = InjectionType.singleton,
bool overrideInstance = false});