stopScan static method

Future<void> stopScan()

Stop scan. Set onScanResult listener to null if you don't need it anymore. It might throw errors if Bluetooth is not available.

Implementation

static Future<void> stopScan() async {
  return await _bleCommandQueue.queueCommandWithoutTimeout(
    () => _platform.stopScan(),
  );
}