EasyDropdownComponent constructor

const EasyDropdownComponent({
  1. Key? key,
  2. required List<EasyDropdownItem> items,
  3. String title = '',
  4. String description = '',
  5. String? leadingIcon,
  6. String? searchHintText,
  7. bool enableSearch = false,
  8. bool isSimplified = false,
  9. double? maxHeight,
  10. double? maxWidth,
  11. double? listHeight,
  12. double? listWidth,
  13. double fieldWidth = 200,
  14. double fieldHeight = 40,
  15. dynamic onSelectionChanged(
    1. EasyDropdownItem
    )?,
  16. dynamic onClose(
    1. List<EasyDropdownItem>
    )?,
  17. dynamic onListChanged(
    1. List<EasyDropdownItem>
    )?,
  18. Widget? customField,
  19. Widget? customSearchField,
  20. TextEditingController? searchController,
  21. Widget? customClearButton,
  22. Widget? customSelectAllButton,
  23. Widget customListItem(
    1. EasyDropdownItem item,
    2. VoidCallback onTap
    )?,
  24. Widget customSelectedListItem(
    1. EasyDropdownItem item,
    2. VoidCallback onTap
    )?,
  25. Widget? customSelectedHeader,
  26. Widget? customAvailableHeader,
  27. Widget? customEmptyResultsWidget,
  28. BoxDecoration? dropdownDecoration,
  29. double dropdownElevation = 8,
  30. EdgeInsetsGeometry? dropdownPadding,
  31. EdgeInsetsGeometry dropdownOuterPadding = const EdgeInsets.only(top: 4),
  32. bool searchMatcher(
    1. EasyDropdownItem item,
    2. String searchText
    )?,
})

Implementation

const EasyDropdownComponent({
  super.key,
  required this.items,
  this.title = '',
  this.description = '',
  this.leadingIcon,
  this.searchHintText,
  this.enableSearch = false,
  this.isSimplified = false,
  this.maxHeight,
  this.maxWidth,
  this.listHeight,
  this.listWidth,
  this.fieldWidth = 200,
  this.fieldHeight = 40,
  this.onSelectionChanged,
  this.onClose,
  this.onListChanged,
  this.customField,
  this.customSearchField,
  this.searchController,
  this.customClearButton,
  this.customSelectAllButton,
  this.customListItem,
  this.customSelectedListItem,
  this.customSelectedHeader,
  this.customAvailableHeader,
  this.customEmptyResultsWidget,
  this.dropdownDecoration,
  this.dropdownElevation = 8,
  this.dropdownPadding,
  this.dropdownOuterPadding = const EdgeInsets.only(top: 4),
  this.searchMatcher,
});