disconnectBluetoothDevice method

  1. @override
Future<bool> disconnectBluetoothDevice()
override

Implementation

@override
Future<bool> disconnectBluetoothDevice() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('disconnectBLEDevice') ?? false;
    return result;
  } catch (e) {
    rethrow;
  }
}