getInstance<T> method
Implementation
@override
T getInstance<T>() {
if (instances.containsKey(T)) {
return instances[T] as T;
} else {
throw ArgumentError("Type $T is not registered");
}
}
@override
T getInstance<T>() {
if (instances.containsKey(T)) {
return instances[T] as T;
} else {
throw ArgumentError("Type $T is not registered");
}
}