CSCPicker constructor
const
CSCPicker({
- Key? key,
- ValueChanged<
String?> ? onCountryChanged, - ValueChanged<
String?> ? onStateChanged, - ValueChanged<
String?> ? onCityChanged, - TextStyle? selectedItemStyle,
- TextStyle? dropdownHeadingStyle,
- TextStyle? dropdownItemStyle,
- BoxDecoration? dropdownDecoration,
- BoxDecoration? disabledDropdownDecoration,
- double? searchBarRadius,
- double? dropdownDialogRadius,
- CountryFlag flagState = CountryFlag.ENABLE,
- Layout layout = Layout.horizontal,
- bool showStates = true,
- bool showCities = true,
- CscCountry? defaultCountry,
- String? currentCountry,
- String? currentState,
- String? currentCity,
- bool disableCountry = false,
- String countrySearchPlaceholder = "Search Country",
- String stateSearchPlaceholder = "Search State",
- String citySearchPlaceholder = "Search City",
- String countryDropdownLabel = "Country",
- String stateDropdownLabel = "State",
- String cityDropdownLabel = "City",
- List<
CscCountry> ? countryFilter, - Widget? title,
- Widget clearButtonContent = const Text("Clear"),
- 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);