MailSearchResult class Null safety

Contains the result of a search

Inheritance

Constructors

MailSearchResult(MailSearch search, PagedMessageSequence pagedSequence, List<MimeMessage> messages, FetchPreference fetchPreference)
Creates a new search result
MailSearchResult.empty(MailSearch search)
Creates a new empty search result

Properties

fetchPreference FetchPreference
The original fetch preference
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hasMoreResults bool
Checks if the messageSequence has a next page
read-only, inherited
isEmpty bool
Checks if this result is empty
read-only, inherited
isNotEmpty bool
Checks if this result is not empty
read-only, inherited
isUidBased bool
Shortcut to find out if this search result is UID based
read-only, inherited
length int
The number of all matching messages
read-only, inherited
messages List<MimeMessage>
The fetched messages, initially this contains only the first page
final, inherited
pagedSequence PagedMessageSequence
The message sequence containing all IDs or UIDs, may be null for empty searches
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
The original search
final

Methods

addMessage(MimeMessage message) → void
Adds the specified message to this search result.
inherited
insertAll(List<MimeMessage> page) → void
Inserts the given page of messages to this result
inherited
isAvailable(int messageIndex) bool
Checks if the message for the given messageIndex is already loaded. [...]
inherited
isPageRequestedFor(int messageIndex) bool
Checks if the page for the given message messageIndex is already requested. [...]
inherited
messageIdAt(int messageIndex) int
Retrieves the message ID at the specified messageIndex. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeMessage(MimeMessage message) → void
Adds the specified message to this search result.
inherited
removeMessageSequence(MessageSequence removeSequence) List<MimeMessage>
Removes the specified removeSequence from this result and returns all messages that have been loaded. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](int messageIndex) MimeMessage
Retrieves the message for the given messageIndex. [...]
inherited