LocationPickerWidget constructor

const LocationPickerWidget({
  1. Key? key,
  2. CountryModel? initialCountry,
  3. StateModel? initialState,
  4. CityModel? initialCity,
  5. dynamic onCountryChanged(
    1. CountryModel?
    )?,
  6. dynamic onStateChanged(
    1. StateModel?
    )?,
  7. dynamic onCityChanged(
    1. CityModel?
    )?,
  8. LocationPickerTheme? theme,
  9. bool showCountry = true,
  10. bool showState = true,
  11. bool showCity = true,
  12. String? countryHint = 'Select Country',
  13. String? stateHint = 'Select State',
  14. String? cityHint = 'Select City',
  15. String? countryLabel,
  16. String? stateLabel,
  17. String? cityLabel,
  18. EdgeInsetsGeometry? spacing,
  19. MainAxisAlignment? alignment,
  20. CrossAxisAlignment? crossAlignment,
  21. bool isExpanded = true,
  22. String? customCountryAssetPath,
  23. String? customStateAssetPath,
  24. String? customCityAssetPath,
  25. bool useAutocomplete = true,
})

Implementation

const LocationPickerWidget({
  super.key,
  this.initialCountry,
  this.initialState,
  this.initialCity,
  this.onCountryChanged,
  this.onStateChanged,
  this.onCityChanged,
  this.theme,
  this.showCountry = true,
  this.showState = true,
  this.showCity = true,
  this.countryHint = 'Select Country',
  this.stateHint = 'Select State',
  this.cityHint = 'Select City',
  this.countryLabel,
  this.stateLabel,
  this.cityLabel,
  this.spacing,
  this.alignment,
  this.crossAlignment,
  this.isExpanded = true,
  this.customCountryAssetPath,
  this.customStateAssetPath,
  this.customCityAssetPath,
  this.useAutocomplete = true,
});