find<T> static method
T
find<T>()
findT method.
Implementation
static T find<T>() {
/// Stores the =.
var instance = _instances[T];
/// if method.
if (instance != null) {
_notify('find', T);
return instance as T;
}
/// Stores the =.
final factory = _factories[T];
/// if method.
if (factory != null) {
instance = factory();
return put<T>(instance);
}
throw Exception("No instance of $T found.");
}