AgoraChannelData
copyWith(- {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}
)
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,
);
}