MultiSelectDropdown<T> constructor

const MultiSelectDropdown<T>({
  1. Key? key,
  2. required List<DropdownOption<T>> options,
  3. required List<DropdownOption<T>> initialValues,
  4. required void onChanged(
    1. List<DropdownOption> selectedOption
    ),
  5. bool searchFunction(
    1. DropdownOption<T> option,
    2. String searhString
    )?,
  6. double? popupHeight,
  7. HeaderItemBuilder<T>? headerItemBuilder,
  8. Widget? endAdornment,
  9. bool dismissOnAdd = false,
  10. double itemExtent = defaultItemExtent,
  11. DropdownHeaderOptions drodownHeaderOptions = defaultHeaderOptions,
  12. Widget menuContainerBuilder({
    1. required Widget bodyList,
    2. required DropdownBodyBox dropdownBodyBox,
    })?,
  13. int? maxItemsBeforeScroll = defaultMaxItemsBeforeScroll,
  14. Duration debounceDuration = defaultDebounceDuration,
})

Implementation

const MultiSelectDropdown({
  super.key,
  required this.options,
  required this.initialValues,
  required this.onChanged,
  this.searchFunction,
  this.popupHeight,
  this.headerItemBuilder,
  this.endAdornment,
  this.dismissOnAdd = false,
  this.itemExtent = defaultItemExtent,
  this.drodownHeaderOptions = defaultHeaderOptions,
  this.menuContainerBuilder,
  this.maxItemsBeforeScroll = defaultMaxItemsBeforeScroll,
  this.debounceDuration = defaultDebounceDuration,
});