EasyDropdownComponent constructor
const
EasyDropdownComponent({
- Key? key,
- required List<
EasyDropdownItem> items, - String title = '',
- String description = '',
- String? leadingIcon,
- String? searchHintText,
- bool enableSearch = false,
- bool isSimplified = false,
- double? maxHeight,
- double? maxWidth,
- double? listHeight,
- double? listWidth,
- double fieldWidth = 200,
- double fieldHeight = 40,
- dynamic onSelectionChanged()?,
- dynamic onClose()?,
- dynamic onListChanged()?,
- Widget? customField,
- Widget? customSearchField,
- TextEditingController? searchController,
- Widget? customClearButton,
- Widget? customSelectAllButton,
- Widget customListItem(
- EasyDropdownItem item,
- VoidCallback onTap
- Widget customSelectedListItem(
- EasyDropdownItem item,
- VoidCallback onTap
- Widget? customSelectedHeader,
- Widget? customAvailableHeader,
- Widget? customEmptyResultsWidget,
- BoxDecoration? dropdownDecoration,
- double dropdownElevation = 8,
- EdgeInsetsGeometry? dropdownPadding,
- EdgeInsetsGeometry dropdownOuterPadding = const EdgeInsets.only(top: 4),
- bool searchMatcher(
- EasyDropdownItem item,
- 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,
});