CkStateDropDown constructor
const
CkStateDropDown({
- Key? key,
- String hint = 'State',
- Widget? prefix,
- required String countryName,
- required void onChanged(),
- MapEntry<
String, String> ? initialValue, - String? initialState,
- bool isRequired = false,
- FontStyle fontStyle = FontStyle.normal,
- Color? backgroundColor,
- Color? borderColor,
- TextStyle? textStyle,
- bool isLoading = false,
- double borderRadius = 8,
- bool enableInitalSelection = false,
- EdgeInsets? contentPadding,
- Widget? suffixIcon,
- dynamic nameBuilder(
- CkStateDropDownItemProperty property
- Map<
String, String> ? customAbbreviationMap, - bool showAbbreviationInMenu = false,
- bool isSeparated = false,
- EdgeInsets? itemPadding,
- Widget selectedItemBuilder(
- CkStateDropDownItemProperty property
- TextStyle? hintStyle,
- CkBorderType borderType = CkBorderType.outline,
- double borderWidth = 1.2,
- CkDropDownType dropDownType = CkDropDownType.menu,
Implementation
const CkStateDropDown({
super.key,
this.hint = 'State',
this.prefix,
required this.countryName,
required this.onChanged,
this.initialValue,
this.initialState,
this.isRequired = false,
this.fontStyle = FontStyle.normal,
this.backgroundColor,
this.borderColor,
this.textStyle,
this.isLoading = false,
this.borderRadius = 8,
this.enableInitalSelection = false,
this.contentPadding,
this.suffixIcon,
this.nameBuilder,
this.customAbbreviationMap,
this.showAbbreviationInMenu = false,
this.menuWidth,
this.isSeparated = false,
this.menuItemAlignment,
this.itemPadding,
this.menuElevation = 1.0,
this.menuBorderColor,
this.selectedItemBuilder,
this.hintStyle,
this.borderType = CkBorderType.outline,
this.borderWidth = 1.2,
this.dropDownType = CkDropDownType.menu,
this.menuMaxHeight,
});