TF-3385 Update move emails
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user