SearchQueryBuilder class

Creates a new search query. In IMAP any search query is combined with AND meaning all conditions must be met by matching messages.

Constructors

SearchQueryBuilder.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchTerms List<SearchTerm>
final

Methods

add(SearchTerm term) → void
Adds a new search term
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(StringBuffer buffer) → void
toString() String
A string representation of this object.
override

Operators

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

Static Methods

from(String query, SearchQueryType queryType, {SearchMessageType? messageType, DateTime? since, DateTime? before, DateTime? sentSince, DateTime? sentBefore}) SearchQueryBuilder
Helper to create a common search query. query contains the search text, define where to search with the queryType. Optionally you can also define what kind of messages to search with the messageType, the internal date since a message has been received with since, the internal date before a message has been received with before, the internal date since a message has been sent with sentSince, the internal date before a message has been sent with sentBefore,