bind<T> method

  1. @override
void bind<T>(
  1. String key,
  2. T fn(
    1. Container container
    )
)
override

Binds a new DI item into the container The function bound to the provided key will only be called when the container receives a request for the item at that key.

Implementation

@override
void bind<T>(String key, T Function(Container container) fn) {
  bindings[key] = fn;
}