SelectState constructor

const SelectState({
  1. Key? key,
  2. ValueChanged<String>? onCountryChanged,
  3. ValueChanged<String>? onStateChanged,
  4. ValueChanged<String>? onCityChanged,
  5. ValueChanged<StatusModel>? onCountrySelected,
  6. ValueChanged<State>? onStateSelected,
  7. ValueChanged<City>? onCitySelected,
  8. InputDecoration? decoration,
  9. double spacing = 10.0,
  10. TextStyle? style,
  11. TextStyle? hintStyle,
  12. Color? dropdownColor,
  13. String? defaultValue,
  14. String? defaultState,
  15. String? defaultCity,
  16. String countryHint = "Choose Country",
  17. String stateHint = "Choose State/Province",
  18. String cityHint = "Choose City",
  19. bool hideCountry = false,
  20. bool hideState = false,
  21. bool hideCity = false,
  22. bool showFlag = true,
  23. bool showSearch = true,
  24. 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);