TF-153 Combine moveToMailbox and moveToTrash to moveToMailbox using EmailActionType object

This commit is contained in:
dab246
2022-04-15 15:51:37 +07:00
committed by Dat H. Pham
parent 60aabfb6d1
commit 16c5aed64e
45 changed files with 268 additions and 722 deletions
@@ -11,6 +11,7 @@ class PresentationMailbox with EquatableMixin {
static final roleTemplates = Role('templates');
static final roleOutbox = Role('outbox');
static final roleDrafts = Role('drafts');
static final roleSpam = Role('spam');
final MailboxId id;
final MailboxName? name;
@@ -56,6 +57,8 @@ class PresentationMailbox with EquatableMixin {
return unreadEmails!.value.value <= 999 ? '${unreadEmails!.value.value}' : '999+';
}
bool get isSpam => role == roleSpam;
@override
List<Object?> get props => [
id,