copyWith method

AudioCaptureOptions copyWith(
  1. {String? deviceId,
  2. bool? noiseSuppression,
  3. bool? echoCancellation,
  4. bool? autoGainControl,
  5. bool? highPassFilter,
  6. bool? typingNoiseDetection}
)

Implementation

AudioCaptureOptions copyWith({
  String? deviceId,
  bool? noiseSuppression,
  bool? echoCancellation,
  bool? autoGainControl,
  bool? highPassFilter,
  bool? typingNoiseDetection,
}) {
  return AudioCaptureOptions(
    deviceId: deviceId ?? this.deviceId,
    noiseSuppression: noiseSuppression ?? this.noiseSuppression,
    echoCancellation: echoCancellation ?? this.echoCancellation,
    autoGainControl: autoGainControl ?? this.autoGainControl,
    highPassFilter: highPassFilter ?? this.highPassFilter,
    typingNoiseDetection: typingNoiseDetection ?? this.typingNoiseDetection,
  );
}