getBondedDevices method

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

Implementation

@override
Future<List<BluetoothDevice>> getBondedDevices() async {
  final response =
      await methodChannel.invokeMethod("get_bonded_devices") as List<Object?>;
  final devices = response.map(BluetoothDevice.fromMap);
  return devices.toList();
}