CkDropDown<T> constructor

const CkDropDown<T>({
  1. required String hint,
  2. required List<T> items,
  3. required dynamic onChanged(
    1. T? value
    ),
  4. required Widget nameBuilder(
    1. CkDropDownNameBuilderProperty<T> property
    ),
  5. bool isRequired = false,
  6. Color? borderColor,
  7. Color? backgroundColor,
  8. Color? menuBackgroundColor,
  9. TextStyle? textStyle,
  10. bool isLoading = false,
  11. double? borderRadius,
  12. Widget? prefix,
  13. T? initalValue,
  14. bool enableInitalSelection = true,
  15. bool disabled = false,
  16. Key? key,
  17. FontStyle? fontStyle,
  18. EdgeInsets? contentPadding,
  19. Widget selectedItemBuilder(
    1. T value
    )?,
  20. TextStyle? hintStyle,
  21. CkBorderType borderType = CkBorderType.outline,
  22. double borderWidth = 1.2,
  23. Widget? suffixIcon,
  24. CkDropDownType dropDownType = CkDropDownType.menu,
  25. double? menuWidth,
  26. bool isSeparated = false,
  27. AlignmentGeometry? menuItemAlignment,
  28. EdgeInsets? itemPadding,
  29. double menuElevation = 1.0,
  30. Color? menuBorderColor,
  31. double menuBorderRadius = 8,
  32. Widget? footer,
  33. double? menuMaxHeight,
})

Implementation

const CkDropDown({
  required this.hint,
  required this.items,
  required this.onChanged,
  required this.nameBuilder,
  this.isRequired = false,
  this.borderColor,
  this.backgroundColor,
  this.menuBackgroundColor,
  this.textStyle,
  this.isLoading = false,
  this.borderRadius,
  this.prefix,
  this.initalValue,
  this.enableInitalSelection = true,
  this.disabled = false,
  super.key,
  this.fontStyle,
  this.contentPadding,
  this.selectedItemBuilder,
  this.hintStyle,
  this.borderType = CkBorderType.outline,
  this.borderWidth = 1.2,
  this.suffixIcon,
  this.dropDownType = CkDropDownType.menu,
  this.menuWidth,
  this.isSeparated = false,
  this.menuItemAlignment,
  this.itemPadding,
  this.menuElevation = 1.0,
  this.menuBorderColor,
  this.menuBorderRadius = 8,
  this.footer,
  this.menuMaxHeight,
});