CkStateDropDown constructor

const CkStateDropDown({
  1. Key? key,
  2. String hint = 'State',
  3. Widget? prefix,
  4. required String countryName,
  5. required void onChanged(
    1. CkStateDropDownItemProperty?
    ),
  6. MapEntry<String, String>? initialValue,
  7. String? initialState,
  8. bool isRequired = false,
  9. FontStyle fontStyle = FontStyle.normal,
  10. Color? backgroundColor,
  11. Color? borderColor,
  12. TextStyle? textStyle,
  13. bool isLoading = false,
  14. double borderRadius = 8,
  15. bool enableInitalSelection = false,
  16. EdgeInsets? contentPadding,
  17. Widget? suffixIcon,
  18. dynamic nameBuilder(
    1. CkStateDropDownItemProperty property
    )?,
  19. Map<String, String>? customAbbreviationMap,
  20. bool showAbbreviationInMenu = false,
  21. double? menuWidth,
  22. bool isSeparated = false,
  23. AlignmentGeometry? menuItemAlignment,
  24. EdgeInsets? itemPadding,
  25. double menuElevation = 1.0,
  26. Color? menuBorderColor,
  27. Widget selectedItemBuilder(
    1. CkStateDropDownItemProperty property
    )?,
  28. TextStyle? hintStyle,
  29. CkBorderType borderType = CkBorderType.outline,
  30. double borderWidth = 1.2,
  31. CkDropDownType dropDownType = CkDropDownType.menu,
  32. double? menuMaxHeight,
})

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,
});