copyWith method

AgoraChannelData copyWith({
  1. ChannelProfile? channelProfile,
  2. ClientRole? clientRole,
  3. VideoEncoderConfiguration? videoEncoderConfiguration,
  4. bool? setCameraAutoFocusFaceModeEnabled,
  5. bool? enableDualStreamMode,
  6. StreamFallbackOptions? localPublishFallbackOption,
  7. StreamFallbackOptions? remoteSubscribeFallbackOption,
  8. AudioProfile? audioProfile,
  9. AudioScenario? audioScenario,
  10. BeautyOptions? setBeautyEffectOptions,
  11. bool? setCameraTorchOn,
  12. bool? muteAllRemoteVideoStreams,
  13. bool? muteAllRemoteAudioStreams,
  14. bool? isActiveSpeakerDisabled,
})

Implementation

AgoraChannelData copyWith({
  final ChannelProfile? channelProfile,
  ClientRole? clientRole,
  VideoEncoderConfiguration? videoEncoderConfiguration,
  bool? setCameraAutoFocusFaceModeEnabled,
  bool? enableDualStreamMode,
  StreamFallbackOptions? localPublishFallbackOption,
  StreamFallbackOptions? remoteSubscribeFallbackOption,
  AudioProfile? audioProfile,
  AudioScenario? audioScenario,
  BeautyOptions? setBeautyEffectOptions,
  bool? setCameraTorchOn,
  bool? muteAllRemoteVideoStreams,
  bool? muteAllRemoteAudioStreams,
  bool? isActiveSpeakerDisabled,
}) {
  return AgoraChannelData(
    channelProfile: channelProfile ?? this.channelProfile,
    clientRole: clientRole ?? this.clientRole,
    videoEncoderConfiguration:
        videoEncoderConfiguration ?? this.videoEncoderConfiguration,
    setCameraAutoFocusFaceModeEnabled: setCameraAutoFocusFaceModeEnabled ??
        this.setCameraAutoFocusFaceModeEnabled,
    enableDualStreamMode: enableDualStreamMode ?? this.enableDualStreamMode,
    localPublishFallbackOption:
        localPublishFallbackOption ?? this.localPublishFallbackOption,
    remoteSubscribeFallbackOption:
        remoteSubscribeFallbackOption ?? this.remoteSubscribeFallbackOption,
    audioProfile: audioProfile ?? this.audioProfile,
    audioScenario: audioScenario ?? this.audioScenario,
    setBeautyEffectOptions:
        setBeautyEffectOptions ?? this.setBeautyEffectOptions,
    setCameraTorchOn: setCameraTorchOn ?? this.setCameraTorchOn,
    muteAllRemoteAudioStreams:
        muteAllRemoteAudioStreams ?? this.muteAllRemoteAudioStreams,
    muteAllRemoteVideoStreams:
        muteAllRemoteVideoStreams ?? this.muteAllRemoteVideoStreams,
    isActiveSpeakerDisabled:
        isActiveSpeakerDisabled ?? this.isActiveSpeakerDisabled,
  );
}