getConnectedDevices method

Iterable<Device> getConnectedDevices({
  1. Iterable<DeviceCategory> acceptedDeviceCategories = const [DeviceCategory.SOCKET],
})

Implementation

Iterable<Device> getConnectedDevices({
  Iterable<DeviceCategory> acceptedDeviceCategories = const [DeviceCategory.SOCKET],
}) =>
    devices.where((device) {
      return device.isConnected &&
          acceptedDeviceCategories.contains(device.category);
    });