XDropSearch<T> constructor

XDropSearch<T>({
  1. Key? key,
  2. required T? itemSelected,
  3. required List<T> liItems,
  4. required String? label,
  5. required ValueChanged<T>? onChanged_ItemOfDD,
  6. Color? label_Color,
  7. Color? background_Color = Colors.transparent,
  8. DropdownSearchPopupItemBuilder<T>? itemWidgetBuilder,
  9. Widget? clearBTN,
  10. String itemAsString(
    1. T
    )?,
  11. Future<List<T>> onFind(
    1. String
    )?,
  12. Color? focusColorOfDD,
  13. bool? menu_SearchBox_Active,
  14. EdgeInsetsGeometry? contentPadding,
  15. Widget dropdownBuilder(
    1. BuildContext,
    2. T?
    )?,
  16. TextStyle? item_TextStyle(
    1. T
    )?,
  17. Alignment? item_TextAlignment,
  18. TextStyle? label_Style,
  19. AutovalidateMode? autoValidateMode = AutovalidateMode.disabled,
  20. bool? clearBTN_Active,
  21. double? clearBTN_IconSize,
  22. EdgeInsetsGeometry? clearBTN_Padding,
  23. Color? clearBTN_IconColor,
  24. BoxConstraints? clearBTN_Constraints,
  25. Color? menu_BackGroundColor,
  26. String? menu_Title,
  27. Color? menu_Title_Color,
  28. TextStyle? menu_Title_Style,
  29. Color? menu_SearchBoxBorderANDtitle_Color,
  30. Color? al_BackGroundColor,
  31. String? al_Title,
  32. Color? al_Title_Color,
  33. TextStyle? al_Title_Style,
  34. bool? al_SearchBox_Active,
  35. Color? al_SearchBoxBorderANDtitle_Color,
  36. Widget? dropBTN,
  37. EdgeInsetsGeometry? dropBTN_Padding,
  38. Color? dropBTN_IconColor,
  39. double? dropBTN_IconSize = 18,
  40. BoxConstraints? dropBTN_Constraints,
  41. Color? labelANDborder_Color,
  42. FloatingLabelBehavior? label_Behavior,
  43. String? propToShowInItems,
  44. String? dropDownMode,
  45. String? validator(
    1. T?
    )?,
  46. bool filterFn(
    1. T,
    2. String
    )?,
  47. Color? item_LabelColor,
  48. TextStyle? item_LabelStyle,
})

Implementation

XDropSearch({
  Key? key,
  required this.itemSelected,
  required this.liItems,
  required this.label,
  required this.onChanged_ItemOfDD,
  this.label_Color,
  this.background_Color = Colors.transparent,
  this.itemWidgetBuilder,
  this.clearBTN,
  this.itemAsString,
  this.onFind,
  this.focusColorOfDD,
  this.menu_SearchBox_Active,
  this.contentPadding,
  this.dropdownBuilder,
  this.item_TextStyle,
  this.item_TextAlignment,
  this.label_Style,
  this.autoValidateMode = AutovalidateMode.disabled,
  this.clearBTN_Active,
  this.clearBTN_IconSize,
  this.clearBTN_Padding,
  this.clearBTN_IconColor,
  this.clearBTN_Constraints,
  this.menu_BackGroundColor,
  this.menu_Title,
  this.menu_Title_Color,
  this.menu_Title_Style,
  this.menu_SearchBoxBorderANDtitle_Color,
  this.al_BackGroundColor,
  this.al_Title,
  this.al_Title_Color,
  this.al_Title_Style,
  this.al_SearchBox_Active,
  this.al_SearchBoxBorderANDtitle_Color,
  this.dropBTN,
  this.dropBTN_Padding,
  this.dropBTN_IconColor,
  this.dropBTN_IconSize = 18,
  this.dropBTN_Constraints,
  this.labelANDborder_Color,
  this.label_Behavior,
  this.propToShowInItems,
  this.dropDownMode,
  this.validator,
  this.filterFn,
  this.item_LabelColor,
  this.item_LabelStyle,
}) : super(key: key);