fetchAllFailed method

Future<void> fetchAllFailed({
  1. String? token,
})

Fetch all of the Philip's Hue devices on the network that this device has permission to fetch which failed to be fetched in the last fetch.

token is the remote access token.

If this method fails to fetch a resource with an error, the resource will be added back to the failedFetches list.

Implementation

Future<void> fetchAllFailed({
  String? token,
}) async {
  for (final ResourceType type in ResourceType.values) {
    fetchAllFailedType(type, token: token);
  }
}