CustomDropdownMultiSelect constructor

const CustomDropdownMultiSelect({
  1. Key? key,
  2. required List<DropDownDataModel> items,
  3. required List<DropDownDataModel> selectedItems,
  4. required ValueChanged<List<DropDownDataModel>> onChanged,
  5. String hintText = "Select options",
  6. bool isSearch = false,
  7. Color? borderColor,
  8. double? textSize,
  9. Color? dropdownIconColor,
  10. Color? textColor,
  11. Color? hintTextColor,
  12. Color? buttonBackgroundColor,
  13. Color? dropdownTextColor,
  14. Color? dropdownBackgroundColor,
  15. Color? selectedDataColor,
  16. Color? selectedDataBgColor,
  17. double? radius,
  18. double? menuRadius,
  19. EdgeInsetsGeometry? buttonPadding,
  20. EdgeInsetsGeometry? menuPadding,
  21. Widget separatorBuilder(
    1. BuildContext,
    2. int
    )?,
  22. Color? searchTextColor,
  23. Color? searchBackgroundColor,
  24. Color? searchIconColor,
  25. EdgeInsetsGeometry? searchTextFieldPadding,
  26. double? searchTextFieldRadius,
  27. double? selectedFontSize,
  28. Color? checkBoxColor,
  29. Color? checkColor,
  30. double? dropdownIconSize,
  31. double? chipCancelIconSize,
  32. double? scale,
})

Creates a CustomDropdownMultiSelect widget.

Implementation

const CustomDropdownMultiSelect({
  super.key,
  required this.items,
  required this.selectedItems,
  required this.onChanged,
  this.hintText = "Select options",
  this.isSearch = false,
  this.borderColor,
  this.textSize,
  this.dropdownIconColor,
  this.textColor,
  this.hintTextColor,
  this.buttonBackgroundColor,
  this.dropdownTextColor,
  this.dropdownBackgroundColor,
  this.selectedDataColor,
  this.selectedDataBgColor,
  this.radius,
  this.menuRadius,
  this.buttonPadding,
  this.menuPadding,
  this.separatorBuilder,
  this.searchTextColor,
  this.searchBackgroundColor,
  this.searchIconColor,
  this.searchTextFieldPadding,
  this.searchTextFieldRadius,
  this.selectedFontSize,
  this.checkBoxColor,
  this.checkColor,
  this.dropdownIconSize,
  this.chipCancelIconSize,
  this.scale,
});