stopBluetoothScan method

Future<void> stopBluetoothScan()

Implementation

Future<void> stopBluetoothScan() async {
  try {
    return await kruzr_comm.stopBluetoothScan();
  } on PlatformException catch (e, stackTrace) {
    if (kDebugMode) {
      print("Error in stopBluetoothScan");
      print(stackTrace);
      print(e);
    }
    return Future.error({"code": e.code, "message": e.message, "details": e.details});
  } on Exception catch (e, stackTrace) {
    if (kDebugMode) {
      print("Error in stopBluetoothScan");
      print(stackTrace);
      print(e);
    }
    return Future.error(PlatformException(code: "PLUGIN_ERROR", message: e.toString()));
  }
}