copyWith method
AudioOptions
copyWith({
- int? sampleRate,
- AudioChannelFormat? channels,
- bool? enableEchoCancellation,
- 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,
);
}