startScan method

Future startScan({
  1. Duration? timeout,
})

Start a scan for Bluetooth Low Energy devices

Implementation

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