unpairBluetoothDevice method

  1. @override
Future<bool> unpairBluetoothDevice(
  1. String macAddress
)
override

Remove a Bluetooth bond by MAC address

Implementation

@override
Future<bool> unpairBluetoothDevice(String macAddress) async {
  final result = await methodChannel.invokeMethod<bool>(
    'unpairBluetoothDevice',
    {'macAddress': macAddress},
  );
  return result ?? false;
}