copyWith method Null safety
Implementation
AgoraConnectionData copyWith({
String? appId,
String? channelName,
int? uid,
String? tempToken,
String? tokenUrl,
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,
);
}