disconnect method

  1. @override
Future<bool> disconnect(
  1. BluetoothDevice device
)
override

Implementation

@override
Future<bool> disconnect(BluetoothDevice device) async{
  final dynamic res =  await methodChannel.invokeMethod("disconnect",{
    "address":device.address,
  });
  cancelDiscovery();
  startDiscovery();
  return  res == true;
}