TF-3385 Update move emails

This commit is contained in:
DatDang
2025-01-02 14:27:26 +07:00
committed by Dat H. Pham
parent f1613a55ce
commit b95ec24b3c
13 changed files with 450 additions and 56 deletions
+50
View File
@@ -176,4 +176,54 @@ class PresentationEmail with EquatableMixin, SearchSnippetMixin {
searchSnippetSubject,
searchSnippetPreview,
];
PresentationEmail copyWith({
EmailId? id,
Id? blobId,
Map<KeyWordIdentifier, bool>? keywords,
UnsignedInt? size,
UTCDate? receivedAt,
bool? hasAttachment,
String? preview,
String? subject,
UTCDate? sentAt,
Set<EmailAddress>? from,
Set<EmailAddress>? to,
Set<EmailAddress>? cc,
Set<EmailAddress>? bcc,
Set<EmailAddress>? replyTo,
Map<MailboxId, bool>? mailboxIds,
SelectMode? selectMode,
Uri? routeWeb,
PresentationMailbox? mailboxContain,
List<EmailHeader>? emailHeader,
Set<EmailBodyPart>? htmlBody,
Map<PartId, EmailBodyValue>? bodyValues,
Map<IndividualHeaderIdentifier, String?>? headerCalendarEvent,
}) {
return PresentationEmail(
id: id ?? this.id,
blobId: blobId ?? this.blobId,
keywords: keywords ?? this.keywords,
size: size ?? this.size,
receivedAt: receivedAt ?? this.receivedAt,
hasAttachment: hasAttachment ?? this.hasAttachment,
preview: preview ?? this.preview,
subject: subject ?? this.subject,
sentAt: sentAt ?? this.sentAt,
from: from ?? this.from,
to: to ?? this.to,
cc: cc ?? this.cc,
bcc: bcc ?? this.bcc,
replyTo: replyTo ?? this.replyTo,
mailboxIds: mailboxIds ?? this.mailboxIds,
selectMode: selectMode ?? this.selectMode,
routeWeb: routeWeb ?? this.routeWeb,
mailboxContain: mailboxContain ?? this.mailboxContain,
emailHeader: emailHeader ?? this.emailHeader,
htmlBody: htmlBody ?? this.htmlBody,
bodyValues: bodyValues ?? this.bodyValues,
headerCalendarEvent: headerCalendarEvent ?? this.headerCalendarEvent,
);
}
}