TF-78 Create action bar and context menu when multiple selected email

This commit is contained in:
dab246
2021-09-15 10:05:27 +07:00
committed by Dat H. Pham
parent 59ab5265fd
commit 161eed5d72
21 changed files with 980 additions and 66 deletions
@@ -46,4 +46,42 @@ extension PresentationEmailExtension on PresentationEmail {
selectMode: selectMode
);
}
PresentationEmail toggleSelect() {
return PresentationEmail(
id,
keywords: keywords,
size: size,
receivedAt: receivedAt,
hasAttachment: hasAttachment,
preview: preview,
subject: subject,
sentAt: sentAt,
from: from,
to: to,
cc: cc,
bcc: bcc,
replyTo: replyTo,
selectMode: selectMode == SelectMode.INACTIVE ? SelectMode.ACTIVE : SelectMode.INACTIVE
);
}
PresentationEmail toSelectedEmail({required SelectMode selectMode}) {
return PresentationEmail(
id,
keywords: keywords,
size: size,
receivedAt: receivedAt,
hasAttachment: hasAttachment,
preview: preview,
subject: subject,
sentAt: sentAt,
from: from,
to: to,
cc: cc,
bcc: bcc,
replyTo: replyTo,
selectMode: selectMode
);
}
}