PlaceApiProvider class

Constructors

PlaceApiProvider(String sessionToken, String mapsApiKey, String? compomentCountry, String? language, {List<String> componentCountries = const []})

Properties

client → Client
final
compomentCountry → String?
final
componentCountries → List<String>
final
hashCode → int
The hash code for this object.
no setterinherited
language → String?
final
mapsApiKey → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionToken → String
final

Methods

fetchSuggestions(String input, {bool includeFullSuggestionDetails = false, required List<AutoCompleteType> types}) → Future<List<Suggestion>>
includeFullSuggestionDetails if we should include ALL details that are returned in API suggestions. (This is sent as true when the onInitialSuggestionClick is in use) postalCodeLookup if we should request postal_code type return information instead of address type information.
getPlaceDetailFromId(String placeId) → Future<Place>
Requests full address info from Google Places API for the specified placeId and returns a Place object returned info.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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