getBondedDevices method

Future<List<BluetoothDevice>> getBondedDevices()

Returns list of bonded devices.

Implementation

Future<List<BluetoothDevice>> getBondedDevices() async {
  final List list = await (_methodChannel.invokeMethod('getBondedDevices'));
  return list.map((map) => BluetoothDevice.fromMap(map)).toList();
}