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