SearchOptions class

Options to fine-tune search request.

Constructors

SearchOptions({SearchType searchType = SearchType.none, bool geometry = false, bool disableSpellingCorrection = false, int? resultPageSize, Point? userPosition, String? origin})
const

Properties

disableSpellingCorrection bool
Force disable correction of spelling mistakes.
final
geometry bool
Adds the geometry to the server response.
final
hashCode int
The hash code for this object.
no setterinherited
origin String?
String that sets an identifier for the request source.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
resultPageSize int?
Maximum number of search results per page.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchType SearchType
What type of searches to look for If searchType is empty, it means to use server-defined types
final
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
userPosition Point?
The server uses the user position to calculate the distance from the user to suggest results.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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