use<T extends MineralService> method

T use<T extends MineralService>()

Resolve the service instance from its namespace /// ```dart final myService = ioc.use

Implementation

T use<T extends MineralService> () {
  final service = Ioc._instance?._services[T];

  if (service == null) {
    throw ServiceNotExistException(T);
  }

  return service as T;
}