AddressAutocompleteOptions class

Options passed to the native autocomplete provider.

Constructors

AddressAutocompleteOptions({required String query, List<String> countries = const <String>[], int limit = 5, double? latitude, double? longitude, double? radiusMeters, Set<AddressResultType> resultTypes = const <AddressResultType>{AddressResultType.address, AddressResultType.pointOfInterest}, String? localeTag, int? requestId})
Creates a native autocomplete request options object.
const

Properties

countries List<String>
ISO 3166 country codes used to prefer or filter results where supported.
final
hashCode int
The hash code for this object.
no setterinherited
latitude double?
Latitude used as the center of the optional search bias.
final
limit int
Maximum number of suggestions requested.
final
localeTag String?
BCP 47 language tag, such as en-US or zh-Hant-TW.
final
longitude double?
Longitude used as the center of the optional search bias.
final
query String
Search text entered by the user.
final
radiusMeters double?
Radius, in meters, for the optional search bias.
final
requestId int?
Request id used to ignore stale native responses.
final
resultTypes Set<AddressResultType>
Requested result types.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts these options into a platform channel map.
toString() String
A string representation of this object.
inherited

Operators

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