SearchDropList constructor

const SearchDropList({
  1. Key? key,
  2. required OptionItem itemSelected,
  3. required DropListModel dropListModel,
  4. required bool showIcon,
  5. required bool showArrowIcon,
  6. required dynamic onOptionSelected(
    1. OptionItem optionItem
    ),
  7. required TextEditingController textEditingController,
  8. double paddingLeft = 20,
  9. double paddingRight = 20,
  10. double paddingTop = 20,
  11. double paddingBottom = 20,
  12. Widget? icon,
  13. double arrowIconSize = 20,
  14. Color? textColorTitle,
  15. double textSizeTitle = 16,
  16. Color? arrowColor,
  17. Color? textColorItem,
  18. double textSizeItem = 14,
  19. bool showBorder = true,
  20. bool enable = true,
  21. double? width,
  22. BorderRadiusGeometry? borderRadius,
  23. double? height,
  24. double? heightBottomContainer,
  25. List<BoxShadow>? boxShadow,
  26. Color? borderColor,
  27. Color? hintColorTitle,
  28. Decoration? containerDecoration,
  29. Decoration? containerDecorationSearch,
  30. EdgeInsetsGeometry? containerPadding,
  31. Color? shadowColor,
  32. IconData? suffixIcon,
  33. EdgeInsetsGeometry? containerMargin,
  34. double? heightSearchFeild,
  35. Color? dropboxborderColor,
  36. Color? dropboxColor,
  37. BorderRadiusGeometry? dropbBoxborderRadius,
  38. double borderSize = 1,
})

Implementation

const SearchDropList(
    {super.key,
    required this.itemSelected,
    required this.dropListModel,
    required this.showIcon,
    required this.showArrowIcon,
    required this.onOptionSelected,
    required this.textEditingController,
    this.paddingLeft = 20,
    this.paddingRight = 20,
    this.paddingTop = 20,
    this.paddingBottom = 20,
    this.icon,
    this.arrowIconSize = 20,
    this.textColorTitle,
    this.textSizeTitle = 16,
    this.arrowColor,
    this.textColorItem,
    this.textSizeItem = 14,
    this.showBorder = true,
    this.enable = true,
    this.width,
    this.borderRadius,
    this.height,
    this.heightBottomContainer,
    this.boxShadow,
    this.borderColor,
    this.hintColorTitle,
    this.containerDecoration,
    this.containerDecorationSearch,
    this.containerPadding,
    this.shadowColor,
    this.suffixIcon,
    this.containerMargin,
    this.heightSearchFeild,
    this.dropboxborderColor,
    this.dropboxColor,
    this.dropbBoxborderRadius,
    this.borderSize = 1});