put<T> method

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

Used to register dependency as a Singleton. Always that you call get this will be return the same instance. When you use this to register a StateController all components that use he will be use the same instance.

Implementation

void put<T>(BuildDependency<T> build) {
  _dependencies[T] = build;
  _dependenciesSingleton[T] = null;
}