locationServicesAsResources property

List<Resource> get locationServicesAsResources

Returns a list of the location services as Resource objects.

Throws MissingHueNetworkException if the hueNetwork is null, if a service can not be found on the hueNetwork, or if the service's ResourceType cannot be found on the hueNetwork.

Implementation

List<Resource> get locationServicesAsResources {
  List<Relative> services =
      locations.map((location) => location.service).toList();

  return getRelativesAsResources(services);
}