getPairedDevices method

  1. @override
Future<List<BluetoothDevice>> getPairedDevices()
override

Implementation

@override
Future<List<BluetoothDevice>> getPairedDevices() async {
  final rawDevices = await methodChannel.invokeMethod('getPairedDevices');

  return BluetoothDevice.parseDevices(rawDevices.cast<String>());
}