copyWith method
AgoraSettings
copyWith({
- RtcEngine? engine,
- AgoraRtmChannel? agoraRtmChannel,
- AgoraRtmClient? agoraRtmClient,
- AgoraConnectionData? connectionData,
- List<
AgoraUser> ? users, - AgoraUser? mainAgoraUser,
- bool? isLocalUserMuted,
- bool? isLocalVideoDisabled,
- bool? visible,
- ClientRoleType? clientRoleType,
- int? localUid,
- String? generatedToken,
- String? generatedRtmToken,
- String? generatedRtmId,
- bool? isLoggedIn,
- bool? isInChannel,
- bool? isActiveSpeakerDisabled,
- Layout? layoutType,
- bool? displaySnackbar,
- MicState? muteRequest,
- CameraState? cameraRequest,
- bool? showMicMessage,
- bool? showCameraMessage,
- Map<
String, dynamic> ? userdata, - Map<
String, Map< ? userRtmMap,String, dynamic> > - Map<
int, String> ? uidToUserIdMap, - bool? turnOnScreenSharing,
- RecordingState? isCloudRecording,
- String? sid,
- String? resourceId,
Implementation
AgoraSettings copyWith({
RtcEngine? engine,
AgoraRtmChannel? agoraRtmChannel,
AgoraRtmClient? agoraRtmClient,
AgoraConnectionData? connectionData,
List<AgoraUser>? users,
AgoraUser? mainAgoraUser,
bool? isLocalUserMuted,
bool? isLocalVideoDisabled,
bool? visible,
ClientRoleType? clientRoleType,
int? localUid,
String? generatedToken,
String? generatedRtmToken,
String? generatedRtmId,
bool? isLoggedIn,
bool? isInChannel,
bool? isActiveSpeakerDisabled,
Layout? layoutType,
bool? displaySnackbar,
MicState? muteRequest,
CameraState? cameraRequest,
bool? showMicMessage,
bool? showCameraMessage,
Map<String, dynamic>? userdata,
Map<String, Map<String, dynamic>>? userRtmMap,
Map<int, String>? uidToUserIdMap,
bool? isScreenShared,
bool? turnOnScreenSharing,
RecordingState? isCloudRecording,
String? sid,
String? resourceId,
}) {
return AgoraSettings(
engine: engine ?? this.engine,
agoraRtmChannel: agoraRtmChannel ?? this.agoraRtmChannel,
agoraRtmClient: agoraRtmClient ?? this.agoraRtmClient,
connectionData: connectionData ?? this.connectionData,
users: users ?? this.users,
mainAgoraUser: mainAgoraUser ?? this.mainAgoraUser,
isLocalUserMuted: isLocalUserMuted ?? this.isLocalUserMuted,
isLocalVideoDisabled: isLocalVideoDisabled ?? this.isLocalVideoDisabled,
visible: visible ?? this.visible,
clientRoleType: clientRoleType ?? this.clientRoleType,
localUid: localUid ?? this.localUid,
generatedToken: generatedToken ?? this.generatedToken,
generatedRtmToken: generatedRtmToken ?? this.generatedRtmToken,
generatedRtmId: generatedRtmId ?? this.generatedRtmId,
isLoggedIn: isLoggedIn ?? this.isLoggedIn,
isInChannel: isInChannel ?? this.isInChannel,
isActiveSpeakerDisabled:
isActiveSpeakerDisabled ?? this.isActiveSpeakerDisabled,
layoutType: layoutType ?? this.layoutType,
displaySnackbar: displaySnackbar ?? this.displaySnackbar,
muteRequest: muteRequest ?? this.muteRequest,
cameraRequest: cameraRequest ?? this.cameraRequest,
showMicMessage: showMicMessage ?? this.showMicMessage,
showCameraMessage: showCameraMessage ?? this.showCameraMessage,
userdata: userdata ?? this.userdata,
userRtmMap: userRtmMap ?? this.userRtmMap,
uidToUserIdMap: uidToUserIdMap ?? this.uidToUserIdMap,
isScreenShared: isScreenShared ?? this.isScreenShared,
turnOnScreenSharing: turnOnScreenSharing ?? this.turnOnScreenSharing,
isCloudRecording: isCloudRecording ?? this.isCloudRecording,
sid: sid ?? this.sid,
resourceId: resourceId ?? this.resourceId,
);
}