inject<T extends Object> abstract method

void inject<T extends Object>(
  1. InstanceFunction<T> instance, {
  2. InjectionType type = InjectionType.singleton,
  3. 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});