ScanSettings constructor

ScanSettings({
  1. int? androidScanMode,
  2. Iterable<String>? serviceUuids,
  3. bool? allowDuplicates,
})

Implementation

factory ScanSettings({
  $core.int? androidScanMode,
  $core.Iterable<$core.String>? serviceUuids,
  $core.bool? allowDuplicates,
}) {
  final _result = create();
  if (androidScanMode != null) {
    _result.androidScanMode = androidScanMode;
  }
  if (serviceUuids != null) {
    _result.serviceUuids.addAll(serviceUuids);
  }
  if (allowDuplicates != null) {
    _result.allowDuplicates = allowDuplicates;
  }
  return _result;
}