HcPopupPropsMultiSelection<T>.menu constructor

const HcPopupPropsMultiSelection<T>.menu({
  1. Widget? title,
  2. FlexFit fit = FlexFit.tight,
  3. bool showSearchBox = false,
  4. TextFieldProps searchFieldProps = const TextFieldProps(),
  5. MenuProps menuProps = const MenuProps(),
  6. FavoriteItemProps<T> favoriteItemProps = const FavoriteItemProps(),
  7. ScrollbarProps scrollbarProps = const ScrollbarProps(),
  8. ListViewProps listViewProps = const ListViewProps(),
  9. Duration searchDelay = const Duration(seconds: 1),
  10. VoidCallback? onDismissed,
  11. EmptyBuilder? emptyBuilder,
  12. HcDropdownSearchPopupItemBuilder<T>? itemBuilder,
  13. ErrorBuilder? errorBuilder,
  14. LoadingBuilder? loadingBuilder,
  15. bool showSelectedItems = false,
  16. HcDropdownSearchPopupItemEnabled<T>? disabledItemFn,
  17. bool isFilterOnline = false,
  18. PopupBuilder? containerBuilder,
  19. BoxConstraints constraints = const BoxConstraints(maxHeight: 350),
  20. bool interceptCallBacks = false,
  21. OnItemAdded<T>? onItemAdded,
  22. OnItemRemoved<T>? onItemRemoved,
  23. HcDropdownSearchPopupItemBuilder<T>? selectionWidget,
  24. ValidationMultiSelectionBuilder<T>? validationWidgetBuilder,
  25. TextDirection textDirection = TextDirection.ltr,
})

Implementation

const HcPopupPropsMultiSelection.menu({
  super.title,
  super.fit = FlexFit.tight,
  super.showSearchBox = false,
  super.searchFieldProps = const TextFieldProps(),
  super.menuProps = const MenuProps(),
  super.favoriteItemProps = const FavoriteItemProps(),
  super.scrollbarProps = const ScrollbarProps(),
  super.listViewProps = const ListViewProps(),
  super.searchDelay,
  super.onDismissed,
  super.emptyBuilder,
  super.itemBuilder,
  super.errorBuilder,
  super.loadingBuilder,
  super.showSelectedItems = false,
  super.disabledItemFn,
  super.isFilterOnline = false,
  super.containerBuilder,
  super.constraints = const BoxConstraints(maxHeight: 350),
  super.interceptCallBacks = false,
  this.onItemAdded,
  this.onItemRemoved,
  this.selectionWidget,
  this.validationWidgetBuilder,
  this.textDirection = TextDirection.ltr,
}) : super.menu();