CustomDropdown constructor

const CustomDropdown({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. required List items,
  5. required ValueChanged onChanged,
  6. dynamic value,
  7. String? hint,
  8. TextStyle? hintStyle,
  9. TextStyle? itemStyle,
  10. TextStyle? style,
  11. IconData dropdownIcon = Icons.arrow_drop_down,
  12. Color? iconColor,
  13. double? iconSize,
  14. EdgeInsetsGeometry? padding,
  15. EdgeInsetsGeometry? margin,
  16. Color? dropdownColor,
  17. double? dropdownWidth,
  18. double? dropdownHeight,
  19. double? dropdownElevation,
  20. double? dropdownBorderRadius,
  21. double? dropdownMaxHeight,
  22. Color? textColor,
  23. Color? hintColor,
  24. Color? itemColor,
})

Implementation

const CustomDropdown({
  super.key,
  this.width,
  this.height,
  required this.items,
  required this.onChanged,
  this.value,
  this.hint,
  this.hintStyle,
  this.itemStyle,
  this.style,
  this.dropdownIcon = Icons.arrow_drop_down,
  this.iconColor,
  this.iconSize,
  this.padding,
  this.margin,
  this.dropdownColor,
  this.dropdownWidth,
  this.dropdownHeight,
  this.dropdownElevation,
  this.dropdownBorderRadius,
  this.dropdownMaxHeight,
  this.textColor,
  this.hintColor,
  this.itemColor,
});