resolve<T> method
T
resolve<T>()
Resolve a dependency
Implementation
T resolve<T>() {
// Try explicit T
if (_services.containsKey(T)) {
return _services[T] as T;
}
// Try finding by iteration (slow, but works for inheritance if we wanted)
// For now, simple strict matching.
throw Exception('Service not found: $T. Did you forget to register it?');
}