addInjectedFactory<T> abstract method

void addInjectedFactory<T>(
  1. T injectedFactory(
    1. InjectorScope
    )
)

Bind the injectedFactory to be injected to the type T on the Injector and which needs the InjectorScope to build the value. Eg, an Consumer.

This should not be used in most cases, as there is an cleaner way to do it with IInjectorProxy, but there are cases in which this is not possible.

Implementation

void addInjectedFactory<T>(T Function(InjectorScope) injectedFactory);