bind<T> method
Adds dependency resolver of type T
to the container.
Note that value overwriting within same container is prohibited.
If you need it, please use override method instead.
Implementation
ResolvingContext<T> bind<T>() {
final context = new ResolvingContext<T>(this);
if (hasInTree<T>())
throw StateError('Dependency of type `$T` is already exist in containers tree');
_resolvers[T] = context;
return context;
}