Add model PresentationEmail
This commit is contained in:
@@ -6,6 +6,8 @@ import 'package:model/mailbox/select_mode.dart';
|
||||
|
||||
class PresentationMailbox with EquatableMixin {
|
||||
|
||||
static PresentationMailbox presentationMailboxEmpty = PresentationMailbox(MailboxId(Id('empty')));
|
||||
|
||||
final MailboxId id;
|
||||
final MailboxName? name;
|
||||
final MailboxId? parentId;
|
||||
@@ -36,10 +38,6 @@ class PresentationMailbox with EquatableMixin {
|
||||
}
|
||||
);
|
||||
|
||||
factory PresentationMailbox.createMailboxEmpty() {
|
||||
return PresentationMailbox(MailboxId(Id("empty")));
|
||||
}
|
||||
|
||||
bool hasParentId() => parentId != null && parentId!.id.value.isNotEmpty;
|
||||
|
||||
bool hasRole() => role != null && role!.value.isNotEmpty;
|
||||
|
||||
Reference in New Issue
Block a user