SearchOptions class final

Struct to fine-tune search request.

Constructors

SearchOptions({SearchType searchTypes = search_data_types.SearchType.None, int? resultPageSize, SearchSnippet snippets = search_data_types.SearchSnippet.None, Point? userPosition, String? origin, bool geometry = false, bool disableSpellingCorrection = false, SearchFilterCollection? filters})
const

Properties

disableSpellingCorrection bool
Force disable correction of spelling mistakes.
final
filters SearchFilterCollection?
Filter set that will be requested. Please note that the full set of filters that can be applied can only be obtained after the primary request. If you pass an invalid filter to the primary request (for example, "pharmacy with swimming pool"), the behavior is undefined. That is the search can either ignore an invalid filter or return an empty response.
final
geometry bool
Adds the geometry to the server response.
final
hashCode int
The hash code for this object.
no setteroverride
origin String?
String that sets an identifier for the request source.
final
resultPageSize int?
Maximum number of search results per page.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchTypes SearchType
The search type can be one of the search_data_types.SearchType values or their bitwise 'OR' combination. If searchType is not initialized, it means to search in all the sources.
final
snippets SearchSnippet
Snippets that will be requested. The value should be one of search_data_types.SearchSnippet, or their bitwise 'OR' combination.
final
userPosition Point?
The server uses the user position to calculate the distance from the user to search results.
final

Methods

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

Operators

operator ==(covariant SearchOptions other) bool
The equality operator.
override