copy method

AudioContextAndroid copy({
  1. bool? isSpeakerphoneOn,
  2. AndroidAudioMode? audioMode,
  3. bool? stayAwake,
  4. AndroidContentType? contentType,
  5. AndroidUsageType? usageType,
  6. AndroidAudioFocus? audioFocus,
})

Implementation

AudioContextAndroid copy({
  bool? isSpeakerphoneOn,
  AndroidAudioMode? audioMode,
  bool? stayAwake,
  AndroidContentType? contentType,
  AndroidUsageType? usageType,
  AndroidAudioFocus? audioFocus,
}) {
  return AudioContextAndroid(
    isSpeakerphoneOn: isSpeakerphoneOn ?? this.isSpeakerphoneOn,
    audioMode: audioMode ?? this.audioMode,
    stayAwake: stayAwake ?? this.stayAwake,
    contentType: contentType ?? this.contentType,
    usageType: usageType ?? this.usageType,
    audioFocus: audioFocus ?? this.audioFocus,
  );
}