MultiFieldPlacesWidget class

A multi-field address widget that provides Google Places recommendations for each address component while allowing manual entry

Inheritance

Constructors

MultiFieldPlacesWidget.new({Key? key, String? apiKey, String? country, List<String> types = const [], LocationPickerTheme? theme, dynamic onAddressChanged(AddressComponents?)?, dynamic onPlaceSelected(LocationResult?)?, String? initialStreet, String? initialCity, String? initialState, String? initialCountry, String? initialPostalCode, String streetLabel = 'Street Address', String cityLabel = 'City', String stateLabel = 'State/Province', String countryLabel = 'Country', String postalCodeLabel = 'Postal Code', String streetHint = 'Enter street address...', String cityHint = 'Enter city...', String stateHint = 'Enter state or province...', String countryHint = 'Enter country...', String postalCodeHint = 'Enter postal code...', bool showStreetField = true, bool showCityField = true, bool showStateField = true, bool showCountryField = true, bool showPostalCodeField = true, bool enableSuggestions = true})
const

Properties

apiKey String?
final
cityHint String
final
cityLabel String
final
country String?
final
countryHint String
final
countryLabel String
final
enableSuggestions bool
final
hashCode int
The hash code for this object.
no setterinherited
initialCity String?
final
initialCountry String?
final
initialPostalCode String?
final
initialState String?
final
initialStreet String?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAddressChanged → dynamic Function(AddressComponents?)?
final
onPlaceSelected → dynamic Function(LocationResult?)?
final
postalCodeHint String
final
postalCodeLabel String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCityField bool
final
showCountryField bool
final
showPostalCodeField bool
final
showStateField bool
final
showStreetField bool
final
stateHint String
final
stateLabel String
final
streetHint String
final
streetLabel String
final
theme LocationPickerTheme?
final
types List<String>
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MultiFieldPlacesWidget>
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, int wrapWidth = 65}) 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