disconnectAllConnectedDevices method

Future<void> disconnectAllConnectedDevices()

A convenient method for disconnecting all connected devices.

Implementation

Future<void> disconnectAllConnectedDevices() async {
  for (var device in connectedDevices) {
    device.disconnect();
  }
}