copyWith method

AgoraConnectionData copyWith({
  1. String? appId,
  2. String? channelName,
  3. int? uid,
  4. String? tempToken,
  5. String? tokenUrl,
  6. List<AreaCode>? areaCode,
})

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,
  );
}