copyWith method

RemoteActivityData copyWith({
  1. RemoteParticipant? identity,
  2. String? id,
  3. String? message,
  4. int? timestamp,
  5. String? action,
  6. bool? isSender,
  7. String? requestId,
  8. String? meetingUid,
  9. String? displayName,
  10. String? participantLobbyStatus,
  11. String? token,
  12. bool? value,
  13. String? userIdentity,
  14. String? userName,
  15. TranscriptionActionModel? liveCaptionsData,
  16. String? partialTranscription,
  17. String? finalTranscription,
  18. String? participantIdentity,
  19. int? whiteboardId,
  20. String? consent,
  21. List<ConsentParticipant>? participants,
})

Implementation

RemoteActivityData copyWith({
  RemoteParticipant? identity,
  String? id,
  String? message,
  int? timestamp,
  String? action,
  bool? isSender,
  String? requestId,
  String? meetingUid,
  String? displayName,
  String? participantLobbyStatus,
  String? token,
  bool? value,
  String? userIdentity,
  String? userName,
  TranscriptionActionModel? liveCaptionsData,
  String? partialTranscription,
  String? finalTranscription,
  String? participantIdentity,
  int? whiteboardId,
  String? consent,
  List<ConsentParticipant>? participants,
  // ✅ ADD NEW FIELD
}) {
  return RemoteActivityData(
    identity: identity ?? this.identity,
    id: id ?? this.id,
    message: message ?? this.message,
    timestamp: timestamp ?? this.timestamp,
    action: action ?? this.action,
    isSender: isSender ?? this.isSender,
    requestId: requestId ?? this.requestId,
    meetingUid: meetingUid ?? this.meetingUid,
    displayName: displayName ?? this.displayName,
    participantLobbyStatus: participantLobbyStatus ?? this.participantLobbyStatus,
    token: token ?? this.token,
    value: value ?? this.value,
    userIdentity: userIdentity ?? this.userIdentity,
    userName: userName ?? this.userName,
    liveCaptionsData: liveCaptionsData ?? this.liveCaptionsData,
    partialTranscription: partialTranscription ?? this.partialTranscription,
    finalTranscription: finalTranscription ?? this.finalTranscription,
    participantIdentity: participantIdentity ?? this.participantIdentity,
    whiteboardId: whiteboardId ?? this.whiteboardId,
    consent: consent ?? this.consent,
    participants: participants ?? this.participants,
    // ✅ ADD NEW FIELD
  );
}