register<T> method
Implementation
void register<T>(T instance, {String name = '', bool singleton = false}) {
if (!_dependencies.containsKey(T)) {
_dependencies[T] = {};
}
_dependencies[T]![name] = instance;
if (singleton) {
_singletons[T] = instance;
}
}