copyWith method

BluetoothScanOptions copyWith({
  1. BluetoothScanMode? scanMode,
  2. List<String>? serviceUuids,
  3. bool? allowDuplicates,
})

API Documentation for copyWith.

Implementation

BluetoothScanOptions copyWith({
  BluetoothScanMode? scanMode,
  List<String>? serviceUuids,
  bool? allowDuplicates,
}) {
  return BluetoothScanOptions(
    scanMode: scanMode ?? this.scanMode,
    serviceUuids: serviceUuids ?? this.serviceUuids,
    allowDuplicates: allowDuplicates ?? this.allowDuplicates,
  );
}