MultiFieldPlacesWidget constructor

const MultiFieldPlacesWidget({
  1. Key? key,
  2. String? apiKey,
  3. String? country,
  4. List<String> types = const [],
  5. LocationPickerTheme? theme,
  6. dynamic onAddressChanged(
    1. AddressComponents?
    )?,
  7. dynamic onPlaceSelected(
    1. LocationResult?
    )?,
  8. String? initialStreet,
  9. String? initialCity,
  10. String? initialState,
  11. String? initialCountry,
  12. String? initialPostalCode,
  13. String streetLabel = 'Street Address',
  14. String cityLabel = 'City',
  15. String stateLabel = 'State/Province',
  16. String countryLabel = 'Country',
  17. String postalCodeLabel = 'Postal Code',
  18. String streetHint = 'Enter street address...',
  19. String cityHint = 'Enter city...',
  20. String stateHint = 'Enter state or province...',
  21. String countryHint = 'Enter country...',
  22. String postalCodeHint = 'Enter postal code...',
  23. bool showStreetField = true,
  24. bool showCityField = true,
  25. bool showStateField = true,
  26. bool showCountryField = true,
  27. bool showPostalCodeField = true,
  28. 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,
});