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