LocationPickerWidget constructor
const
LocationPickerWidget({
- Key? key,
- CountryModel? initialCountry,
- StateModel? initialState,
- CityModel? initialCity,
- dynamic onCountryChanged()?,
- dynamic onStateChanged()?,
- dynamic onCityChanged()?,
- LocationPickerTheme? theme,
- bool showCountry = true,
- bool showState = true,
- bool showCity = true,
- String? countryHint = 'Select Country',
- String? stateHint = 'Select State',
- String? cityHint = 'Select City',
- String? countryLabel,
- String? stateLabel,
- String? cityLabel,
- EdgeInsetsGeometry? spacing,
- MainAxisAlignment? alignment,
- CrossAxisAlignment? crossAlignment,
- bool isExpanded = true,
- String? customCountryAssetPath,
- String? customStateAssetPath,
- String? customCityAssetPath,
- 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,
});