get<T> method

T get<T>()

Locates the last added service of the given type parameter.

Throws an Exception if requested service is not registered

Implementation

T get<T>() {
  final service = _servicesMap.get<T>(T.toString());
  if (service == null) throw Exception("$T is not registered in Arctium");
  return service;
}