copy method

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

Implementation

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