copyWith method
AgoraConnectionData
copyWith(
{ - String? appId,
- String? channelName,
- String? rtmChannelName,
- int? uid,
- String? rtmUid,
- String? username,
- String? tempToken,
- String? tempRtmToken,
- String? tokenUrl,
- List<AreaCode>? areaCode,
- bool? rtmEnabled,
})
Implementation
AgoraConnectionData copyWith({
String? appId,
String? channelName,
String? rtmChannelName,
int? uid,
String? rtmUid,
String? username,
String? tempToken,
String? tempRtmToken,
String? tokenUrl,
List<AreaCode>? areaCode,
bool? rtmEnabled,
}) {
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,
areaCode: areaCode ?? this.areaCode,
rtmEnabled: rtmEnabled ?? this.rtmEnabled,
);
}