addFactory<T> abstract method

void addFactory<T>(
  1. T factory()
)

Bind the factory to be injected to the type T on the InjectorScope.

Implementation

void addFactory<T>(T Function() factory);