Mailbox class Null safety

Stores meta data about a folder aka Mailbox

Constructors

Mailbox()
Creates a new uninitialized Mailbox
Mailbox.setup(String name, String path, List<MailboxFlag> flags, {String? pathSeparator})
Creates a new mailbox with the specified name, path and flags. [...]

Properties

encodedName String
read-only
encodedPath String
read-only
extendedData Map<String, List<String>>
Map of extended results
read / write
firstUnseenMessageSequenceId int?
read / write
flags List<MailboxFlag>
read / write
hasChildren bool
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasModSequence bool?
This is set to false in case the server supports CONDSTORE but no mod sequence for this mailbox
read / write
highestModSequence int?
The last modification sequence in case the server supports the CONDSTORE or QRESYNC capability. Useful for message synchronization.
read / write
isArchive bool
read-only
isDrafts bool
read-only
isInbox bool
read-only
isJunk bool
read-only
isMarked bool
read / write
isReadWrite bool
read / write
isSelected bool
read / write
isSent bool
read-only
isSpecialUse bool
read-only
isTrash bool
read-only
isUnselectable bool
read / write
messageFlags List<String>?
read / write
messagesExists int
read / write
messagesRecent int?
read / write
messagesUnseen int?
The number of unseen messages - only reported through STATUS calls
read / write
name String
read / write
path String
read / write
pathSeparator String
read / write
permanentMessageFlags List<String>?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uidNext int?
read / write
uidValidity int?
read / write

Methods

getParent(List<Mailbox> knownMailboxes, String separator, {bool create = true, bool createIntermediate = true}) Mailbox?
Tries to determine the parent mailbox from the given knownMailboxes and separator. [...]
hasFlag(MailboxFlag flag) bool
Checks of the mailbox has the given flag
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setNameFromPath() → void
Sets the name from the original path [...]
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

encode(String path) String
Helper method to encode the specified path in Modified UTF7 encoding.