get<S extends Service> static method

S get<S extends Service>()

Implementation

static S get<S extends Service>() {
  for (dynamic service in _services.values) {
    if (service.runtimeType == S) {
      return service;
    }
  }

  dynamic service;

  return service;
}