connectedDevices property
Future<List<BluetoothDevice> >
connectedDevices
Retrieve a list of connected devices
Implementation
Future<List<BluetoothDevice>> get connectedDevices {
if (Platform.isWindows) return Future.value([]); //TODO Windows
return _channel
.invokeMethod('getConnectedDevices')
.then((buffer) => protos.ConnectedDevicesResponse.fromBuffer(buffer))
.then((p) => p.devices)
.then((p) => p.map((d) => BluetoothDevice.fromProto(d)).toList());
}