SelectState constructor
const
SelectState({
- Key? key,
- ValueChanged<
String> ? onCountryChanged, - ValueChanged<
String> ? onStateChanged, - ValueChanged<
String> ? onCityChanged, - ValueChanged<
StatusModel> ? onCountrySelected, - ValueChanged<
State> ? onStateSelected, - ValueChanged<
City> ? onCitySelected, - InputDecoration? decoration,
- double spacing = 10.0,
- TextStyle? style,
- TextStyle? hintStyle,
- Color? dropdownColor,
- String? defaultValue,
- String? defaultState,
- String? defaultCity,
- String countryHint = "Choose Country",
- String stateHint = "Choose State/Province",
- String cityHint = "Choose City",
- bool hideCountry = false,
- bool hideState = false,
- bool hideCity = false,
- bool showFlag = true,
- bool showSearch = true,
- PickerType pickerType = PickerType.material,
Implementation
const SelectState({
Key? key,
this.onCountryChanged,
this.onStateChanged,
this.onCityChanged,
this.onCountrySelected,
this.onStateSelected,
this.onCitySelected,
this.decoration,
this.spacing = 10.0,
this.style,
this.hintStyle,
this.dropdownColor,
this.defaultValue,
this.defaultState,
this.defaultCity,
this.countryHint = "Choose Country",
this.stateHint = "Choose State/Province",
this.cityHint = "Choose City",
this.hideCountry = false,
this.hideState = false,
this.hideCity = false,
this.showFlag = true,
this.showSearch = true,
this.pickerType = PickerType.material,
}) : super(key: key);