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