copyWith method
AgoraConnectionData
copyWith({
- String? appId,
- String? channelName,
- String? rtmChannelName,
- int? uid,
- String? rtmUid,
- String? username,
- String? tempToken,
- String? tempRtmToken,
- String? tokenUrl,
- String? cloudRecordingUrl,
- List<
AreaCode> ? areaCode, - bool? rtmEnabled,
- int? screenSharingUid,
- bool? screenSharingEnabled,
- Function? cloudRecordingCallback,
Implementation
AgoraConnectionData copyWith({
String? appId,
String? channelName,
String? rtmChannelName,
int? uid,
String? rtmUid,
String? username,
String? tempToken,
String? tempRtmToken,
String? tokenUrl,
String? cloudRecordingUrl,
List<AreaCode>? areaCode,
bool? rtmEnabled,
int? screenSharingUid,
bool? screenSharingEnabled,
Function? cloudRecordingCallback,
}) {
return AgoraConnectionData(
appId: appId ?? this.appId,
channelName: channelName ?? this.channelName,
rtmChannelName: rtmChannelName ?? this.rtmChannelName,
uid: uid ?? this.uid,
rtmUid: rtmUid ?? this.rtmUid,
username: username ?? this.username,
tempToken: tempToken ?? this.tempToken,
tempRtmToken: tempRtmToken ?? this.tempRtmToken,
tokenUrl: tokenUrl ?? this.tokenUrl,
cloudRecordingUrl: cloudRecordingUrl ?? this.cloudRecordingUrl,
areaCode: areaCode ?? this.areaCode,
rtmEnabled: rtmEnabled ?? this.rtmEnabled,
screenSharingUid: screenSharingUid ?? this.screenSharingUid,
screenSharingEnabled: screenSharingEnabled ?? this.screenSharingEnabled,
cloudRecordingCallback:
cloudRecordingCallback ?? this.cloudRecordingCallback,
);
}