copyWith method

AudioOptions copyWith({
  1. int? sampleRate,
  2. AudioChannelFormat? channels,
  3. bool? enableEchoCancellation,
  4. bool? enableNoiseSuppression,
})

API Documentation for copyWith.

Implementation

AudioOptions copyWith({
  int? sampleRate,
  AudioChannelFormat? channels,
  bool? enableEchoCancellation,
  bool? enableNoiseSuppression,
}) {
  return AudioOptions(
    sampleRate: sampleRate ?? this.sampleRate,
    channels: channels ?? this.channels,
    enableEchoCancellation:
        enableEchoCancellation ?? this.enableEchoCancellation,
    enableNoiseSuppression:
        enableNoiseSuppression ?? this.enableNoiseSuppression,
  );
}