copyWith method

AgoraConnectionData copyWith({
  1. String? appId,
  2. String? channelName,
  3. String? rtmChannelName,
  4. int? uid,
  5. String? rtmUid,
  6. String? username,
  7. String? tempToken,
  8. String? tempRtmToken,
  9. String? tokenUrl,
  10. String? cloudRecordingUrl,
  11. List<AreaCode>? areaCode,
  12. bool? rtmEnabled,
  13. int? screenSharingUid,
  14. bool? screenSharingEnabled,
  15. 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,
  );
}