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