copyWith method

AgoraChannelData copyWith({
  1. ChannelProfileType? channelProfileType,
  2. ClientRoleType? clientRoleType,
  3. VideoEncoderConfiguration? videoEncoderConfiguration,
  4. bool? setCameraAutoFocusFaceModeEnabled,
  5. bool? enableDualStreamMode,
  6. StreamFallbackOptions? localPublishFallbackOption,
  7. StreamFallbackOptions? remoteSubscribeFallbackOption,
  8. AudioProfileType? audioProfileType,
  9. AudioScenarioType? audioScenarioType,
  10. BeautyOptions? setBeautyEffectOptions,
  11. bool? setCameraTorchOn,
  12. bool? muteAllRemoteVideoStreams,
  13. bool? muteAllRemoteAudioStreams,
  14. bool? isActiveSpeakerDisabled,
})

Implementation

AgoraChannelData copyWith({
  final ChannelProfileType? channelProfileType,
  ClientRoleType? clientRoleType,
  VideoEncoderConfiguration? videoEncoderConfiguration,
  bool? setCameraAutoFocusFaceModeEnabled,
  bool? enableDualStreamMode,
  StreamFallbackOptions? localPublishFallbackOption,
  StreamFallbackOptions? remoteSubscribeFallbackOption,
  AudioProfileType? audioProfileType,
  AudioScenarioType? audioScenarioType,
  BeautyOptions? setBeautyEffectOptions,
  bool? setCameraTorchOn,
  bool? muteAllRemoteVideoStreams,
  bool? muteAllRemoteAudioStreams,
  bool? isActiveSpeakerDisabled,
}) {
  return AgoraChannelData(
    channelProfileType: channelProfileType ?? this.channelProfileType,
    clientRoleType: clientRoleType ?? this.clientRoleType,
    videoEncoderConfiguration:
        videoEncoderConfiguration ?? this.videoEncoderConfiguration,
    setCameraAutoFocusFaceModeEnabled: setCameraAutoFocusFaceModeEnabled ??
        this.setCameraAutoFocusFaceModeEnabled,
    enableDualStreamMode: enableDualStreamMode ?? this.enableDualStreamMode,
    localPublishFallbackOption:
        localPublishFallbackOption ?? this.localPublishFallbackOption,
    remoteSubscribeFallbackOption:
        remoteSubscribeFallbackOption ?? this.remoteSubscribeFallbackOption,
    audioProfileType: audioProfileType ?? this.audioProfileType,
    audioScenarioType: audioScenarioType ?? this.audioScenarioType,
    setBeautyEffectOptions:
        setBeautyEffectOptions ?? this.setBeautyEffectOptions,
    setCameraTorchOn: setCameraTorchOn ?? this.setCameraTorchOn,
    muteAllRemoteAudioStreams:
        muteAllRemoteAudioStreams ?? this.muteAllRemoteAudioStreams,
    muteAllRemoteVideoStreams:
        muteAllRemoteVideoStreams ?? this.muteAllRemoteVideoStreams,
    isActiveSpeakerDisabled:
        isActiveSpeakerDisabled ?? this.isActiveSpeakerDisabled,
  );
}