stopScan method

Future<void> stopScan()

停止扫描设备

Implementation

Future<void> stopScan() async {
  try {
    await _channel.invokeMethod('stopScan');
  } on PlatformException catch (e) {
    throw Exception('停止扫描失败: ${e.message}');
  }
}