targetsAsResources property

List<Resource> get targetsAsResources

Returns a list of the action targets as Resource objects.

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

Implementation

List<Resource> get targetsAsResources {
  List<Relative> targets = actions.map((action) => action.target).toList();

  return getRelativesAsResources(targets);
}