getConnectedDevices method
Iterable<Device>
getConnectedDevices({
- 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);
});