putFactory<T> method

void putFactory<T>(
  1. BuildDependency<T> build
)

Used to register dependency as a Factory. Always that you call get this will be return a new instance. When you use this to register a StateController all components that use he will be using different instances.

Implementation

void putFactory<T>(BuildDependency<T> build) {
  _dependencies[T] = build;
}