stopScanning method

void stopScanning()

Implementation

void stopScanning() {
  isScanning = false;
  shouldSync = true;
  channel.invokeMethod("stopScan");
}