stopScan static method

Future<void> stopScan()

Stops scanning for devices.

Implementation

static Future<void> stopScan() async {
  try {
    _log.info("Stopping scan for devices");
    await FlutterBluePlus.stopScan();
  } catch (error) {
    _log.warning("Couldn't stop scanning. $error");
    return Future.error(BrilliantBluetoothException(error.toString()));
  }
}