copy method

AudioContextConfig copy({
  1. bool? forceSpeaker,
  2. bool? duckAudio,
  3. bool? respectSilence,
  4. bool? stayAwake,
})

Implementation

AudioContextConfig copy({
  bool? forceSpeaker,
  bool? duckAudio,
  bool? respectSilence,
  bool? stayAwake,
}) {
  return AudioContextConfig(
    forceSpeaker: forceSpeaker ?? this.forceSpeaker,
    duckAudio: duckAudio ?? this.duckAudio,
    respectSilence: respectSilence ?? this.respectSilence,
    stayAwake: stayAwake ?? this.stayAwake,
  );
}