FlutterGooglePlacesWeb class
Properties
-
apiKey
→ String
-
This is the API Key that is needed to communicate with google places API
Get API Key: https://developers.google.com/places/web-service/get-api-key
final
-
components
→ String?
-
Currently, you can use components to filter by up to 5 countries.
Countries must be passed as a two character, ISO 3166-1 Alpha-2 compatible country code.
For example: components=country:fr would restrict your results to places within France.
Multiple countries must be passed as multiple country:XX filters, with the pipe character (|) as a separator.
For example: components=country:us|country:pr|country:vi|country:gu|country:mp would restrict your results to places within the United States and its unincorporated organized territories.
final
-
decoration
→ InputDecoration?
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
offset
→ int?
-
The position, in the input term, of the last character that the service uses to match predictions.
For example, if the input is 'Google' and the offset is 3, the service will match on 'Goo'.
The string determined by the offset is matched against the first word in the input term only.
For example, if the input term is 'Google abc' and the offset is 3, the service will attempt to match against 'Goo abc'.
If no offset is supplied, the service will use the whole term. The offset should generally be set to the position of the text caret.
final
-
proxyURL
→ String?
-
Proxy to be used if having CORS XMLError or want to use for security
final
-
required
→ bool
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sessionToken
→ bool
-
sessionToken is a boolean that enable/disables a UUID v4 session token. sessionToken is
true
by default.
Google recommends using session tokens for all autocomplete sessions
Read more about session tokens https://developers.google.com/places/web-service/session-tokens
final
Static Properties
-
showResults
↔ bool
-
showResults boolean shows results container
getter/setter pair
-
value
↔ Map<String, String>
-
value stores the clicked address data in
FlutterGooglePlacesWeb.value
'name'
= '1600 Amphitheatre Parkway, Mountain View, CA, USA';
FlutterGooglePlacesWeb.value'streetAddress'
= '1600 Amphitheatre Parkway';
FlutterGooglePlacesWeb.value'city'
= 'CA';
FlutterGooglePlacesWeb.value'country'
= 'USA';
getter/setter pair