connectedDevices property
List<BluetoothDevice>
get
connectedDevices
Retrieve a list of devices currently connected to your app
Implementation
static List<BluetoothDevice> get connectedDevices {
var copy = Map.from(_connectionStates);
copy.removeWhere((key, value) => value.connectionState == BmConnectionStateEnum.disconnected);
return copy.values.map((v) => BluetoothDevice(remoteId: v.remoteId)).toList();
}