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,
  22. String? dispatchId,
  23. String? mode,
  24. bool? isDeleted,
  25. bool? isEdited,
  26. ReplyMessage? replyMessage,
  27. String? messageId,
  28. Reaction? reaction,
  29. List<Reaction>? reactions,
  30. bool? removeReaction,
  31. bool? isScreenShareAllowed,
})

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,
  String? dispatchId,
  String? mode,
  bool? isDeleted,
  bool? isEdited,
  ReplyMessage? replyMessage,
  String? messageId,
  Reaction? reaction,
  List<Reaction>? reactions,
  bool? removeReaction,
  bool? isScreenShareAllowed,
  // ✅ 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,
    dispatchId: dispatchId ?? this.dispatchId,
    mode: mode ?? this.mode,
    isDeleted: isDeleted ?? this.isDeleted,
    isEdited: isEdited ?? this.isEdited,
    replyMessage: replyMessage ?? this.replyMessage,
    messageId: messageId ?? this.messageId,
    reaction: reaction ?? this.reaction,
    reactions: reactions ?? this.reactions,
    removeReaction: removeReaction ?? this.removeReaction,
    isScreenShareAllowed: isScreenShareAllowed ?? this.isScreenShareAllowed,
    // ✅ ADD NEW FIELD
  );
}