startScan method

Future startScan (
  1. {ScanMode scanMode: ScanMode.lowLatency,
  2. List<Guid> withServices: const [],
  3. List<Guid> withDevices: const [],
  4. Duration timeout,
  5. bool allowDuplicates: false}
)

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;
}