ModDropdownSearch<T> constructor

const ModDropdownSearch<T>({
  1. Key? key,
  2. required List<ModDropdownSearchMenuItem<T>> items,
  3. T? value,
  4. ModDropdownSearchSize size = ModDropdownSearchSize.md,
  5. ModDropdownSearchLabelPosition labelPosition = ModDropdownSearchLabelPosition.top,
  6. String? label,
  7. String? hint,
  8. String? searchHint,
  9. double borderRadius = 8.0,
  10. bool multiSelect = false,
  11. dynamic onChanged(
    1. T?
    )?,
  12. String? validator(
    1. T?
    )?,
  13. Widget? prefixIcon,
  14. Widget? suffixIcon,
  15. String? errorText,
  16. bool enabled = true,
  17. Color? backgroundColor,
  18. Color? textColor,
  19. Color? iconColor,
  20. Color? borderColor,
  21. Color? dropdownBackgroundColor,
  22. Color? searchBackgroundColor,
  23. Widget? checkIcon,
  24. String? closeButtonText,
  25. EdgeInsetsGeometry? searchBoxPadding,
  26. InputDecoration? searchDecoration,
  27. double? dropdownHeight,
  28. String displayStringForOption(
    1. T
    )?,
  29. bool hasBorder = false,
  30. double borderWidth = 1.0,
  31. double? fontSize,
  32. double? iconSize,
  33. bool floatingLabel = false,
  34. Color? floatingLabelBackgroundColor = Colors.transparent,
  35. bool searchEnabled = true,
})

Implementation

const ModDropdownSearch({
  super.key,
  required this.items,
  this.value,
  this.size = ModDropdownSearchSize.md,
  this.labelPosition = ModDropdownSearchLabelPosition.top,
  this.label,
  this.hint,
  this.searchHint,
  this.borderRadius = 8.0,
  this.multiSelect = false,
  this.onChanged,
  this.validator,
  this.prefixIcon,
  this.suffixIcon,
  this.errorText,
  this.enabled = true,
  this.backgroundColor,
  this.textColor,
  this.iconColor,
  this.borderColor,
  this.dropdownBackgroundColor,
  this.searchBackgroundColor,
  this.checkIcon,
  this.closeButtonText,
  this.searchBoxPadding,
  this.searchDecoration,
  this.dropdownHeight,
  this.displayStringForOption,
  this.hasBorder = false,
  this.borderWidth = 1.0,
  this.fontSize,
  this.iconSize,
  this.floatingLabel = false,
  this.floatingLabelBackgroundColor = Colors.transparent,
  this.searchEnabled = true,
});