stopScanBlueToothDevice method Null safety

  1. @override
Future<void> stopScanBlueToothDevice()
override

停止扫描蓝牙设备

Implementation

@override
Future<void> stopScanBlueToothDevice() async {
  if (_scanBluetoothDeviceStreamController?.isClosed == false) {
    return methodChannel
        .invokeMethod(PluginConstants.methodStopScanBluetoothDevice);
  }
}