CSCPicker constructor

const CSCPicker({
  1. Key? key,
  2. ValueChanged<String?>? onCountryChanged,
  3. ValueChanged<String?>? onStateChanged,
  4. ValueChanged<String?>? onCityChanged,
  5. TextStyle? selectedItemStyle,
  6. TextStyle? dropdownHeadingStyle,
  7. TextStyle? dropdownItemStyle,
  8. BoxDecoration? dropdownDecoration,
  9. BoxDecoration? disabledDropdownDecoration,
  10. double? searchBarRadius,
  11. double? dropdownDialogRadius,
  12. CountryFlag flagState = CountryFlag.ENABLE,
  13. Layout layout = Layout.horizontal,
  14. bool showStates = true,
  15. bool showCities = true,
  16. CscCountry? defaultCountry,
  17. String? currentCountry,
  18. String? currentState,
  19. String? currentCity,
  20. bool disableCountry = false,
  21. String countrySearchPlaceholder = "Search Country",
  22. String stateSearchPlaceholder = "Search State",
  23. String citySearchPlaceholder = "Search City",
  24. String countryDropdownLabel = "Country",
  25. String stateDropdownLabel = "State",
  26. String cityDropdownLabel = "City",
  27. List<CscCountry>? countryFilter,
  28. Widget? title,
  29. Widget clearButtonContent = const Text("Clear"),
  30. bool showClearButton = false,
})

CSC Picker Constructor

Implementation

const CSCPicker({
  Key? key,
  this.onCountryChanged,
  this.onStateChanged,
  this.onCityChanged,
  this.selectedItemStyle,
  this.dropdownHeadingStyle,
  this.dropdownItemStyle,
  this.dropdownDecoration,
  this.disabledDropdownDecoration,
  this.searchBarRadius,
  this.dropdownDialogRadius,
  this.flagState = CountryFlag.ENABLE,
  this.layout = Layout.horizontal,
  this.showStates = true,
  this.showCities = true,
  this.defaultCountry,
  this.currentCountry,
  this.currentState,
  this.currentCity,
  this.disableCountry = false,
  this.countrySearchPlaceholder = "Search Country",
  this.stateSearchPlaceholder = "Search State",
  this.citySearchPlaceholder = "Search City",
  this.countryDropdownLabel = "Country",
  this.stateDropdownLabel = "State",
  this.cityDropdownLabel = "City",
  this.countryFilter,
  this.title,
  this.clearButtonContent = const Text("Clear"),
  this.showClearButton = false,
}) : super(key: key);