FlutterGooglePlacesWeb class

Inheritance

Constructors

FlutterGooglePlacesWeb({Key? key, required String apiKey, String? proxyURL, int? offset, String? components, bool sessionToken = true, InputDecoration? decoration, required bool required, TextEditingController? controller})

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
controller TextEditingController?
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

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() FlutterGooglePlacesWebState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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

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