copyWith method
Implementation
AgoraConnectionData copyWith({
String? appId,
String? channelName,
int? uid,
String? tempToken,
String? tokenUrl,
List<AreaCode>? areaCode,
}) {
return AgoraConnectionData(
appId: appId ?? this.appId,
channelName: channelName ?? this.channelName,
uid: uid ?? this.uid,
tempToken: tempToken ?? this.tempToken,
tokenUrl: tokenUrl ?? this.tokenUrl,
areaCode: areaCode ?? this.areaCode,
);
}