active property

bool get active

If this Bluetooth LE scan is (still) active. Meaning that it will generate new advertisementreceived events.

If this is false then this object can safely be thrown away without risking that the scan can never be stopped. See stop.

https://webbluetoothcg.github.io/web-bluetooth/scanning.html#dom-bluetoothlescan-active

Implementation

bool get active => _JSUtil.getProperty(_jsObject, "active") as bool? ?? false;