startScan method

Future startScan({
  1. Duration? timeout,
  2. bool isBle = false,
})

Start a scan for Bluetooth Low Energy devices

Implementation

Future startScan({Duration? timeout, bool isBle = false}) async {
  await discovery(timeout: timeout, isBle: isBle).drain();
  return _scanResults.value;
}