resolve<T> method

T resolve<T>()

Implementation

T resolve<T>() {
  final service = _services[T];

  return switch (service) {
    null => throw Exception('Service not found'),
    _ => service,
  };
}