startScan method
Implementation
Future startScan({
ScanMode scanMode = ScanMode.lowLatency,
List<Guid> withServices = const [],
List<Guid> withDevices = const [],
Duration timeout,
bool allowDuplicates = false,
}) async {
await scan(
scanMode: scanMode,
withServices: withServices,
withDevices: withDevices,
timeout: timeout,
allowDuplicates: allowDuplicates)
.drain();
return _scanResults.value;
}