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
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 thequeryType
. Optionally you can also define what kind of messages to search with themessageType
, the internal date since a message has been received withsince
, the internal date before a message has been received withbefore
, the internal date since a message has been sent withsentSince
, the internal date before a message has been sent withsentBefore
,