MultiSelectField<T> constructor

const MultiSelectField<T>({
  1. Key? key,
  2. required List<Choice<T>> data(),
  3. void onSelect(
    1. List<Choice<T>> choiceList,
    2. bool isFromDefaultData
    )?,
  4. void onChanged(
    1. List<Choice<T>> selectedItems
    )?,
  5. Widget title(
    1. bool isEmpty
    )?,
  6. Widget? footer,
  7. Widget singleSelectWidget(
    1. Choice<T> choiceList
    )?,
  8. Widget multiSelectWidget(
    1. Choice<T> choiceList
    )?,
  9. bool cleanCurrentSelection,
  10. List<Choice<T>>? defaultData,
  11. bool isMandatory,
  12. bool singleSelection,
  13. bool useTextFilter,
  14. Decoration? decoration,
  15. double? menuWidth,
  16. double? menuHeight,
  17. bool menuWidthBaseOnContent,
  18. bool menuHeightBaseOnContent,
  19. TextStyle? textStyleSingleSelection,
  20. MenuStyle? menuStyle,
  21. Widget iconLeft(
    1. bool menuState,
    2. Choice<T> choice
    )?,
  22. Widget iconRight(
    1. bool menuState,
    2. Choice<T> choice
    )?,
  23. ButtonStyle? buttonStyle,
  24. bool mergeSelectedStyle,
  25. ButtonStyle? selectedItemButtonStyle,
  26. EdgeInsetsGeometry? itemPadding,
  27. EdgeInsetsGeometry? selectedItemPadding,
  28. Widget itemMenuButton(
    1. Choice<T> choice
    )?,
  29. TextStyle? titleMenuStyle,
  30. TextStyle? itemMenuStyle,
  31. String? label,
  32. TextStyle? textStyleLabel,
  33. bool selectAllOption,
  34. ItemColor? itemColor,
  35. ScrollbarConfig? scrollbarConfig,
  36. bool staticLabel,
  37. double iconSpacing,
  38. FieldWidth? fieldWidth,
  39. bool closeOnSelect,
})

Creates a standard MultiSelectField with full selection display.

This is the default variant that displays selected items as chips within the field area.

Implementation

const factory MultiSelectField({
  Key? key,
  required List<Choice<T>> Function() data,
  void Function(List<Choice<T>> choiceList, bool isFromDefaultData)? onSelect,
  void Function(List<Choice<T>> selectedItems)? onChanged,
  Widget Function(bool isEmpty)? title,
  Widget? footer,
  Widget Function(Choice<T> choiceList)? singleSelectWidget,
  Widget Function(Choice<T> choiceList)? multiSelectWidget,
  bool cleanCurrentSelection,
  List<Choice<T>>? defaultData,
  bool isMandatory,
  bool singleSelection,
  bool useTextFilter,
  Decoration? decoration,
  double? menuWidth,
  double? menuHeight,
  bool menuWidthBaseOnContent,
  bool menuHeightBaseOnContent,
  TextStyle? textStyleSingleSelection,
  MenuStyle? menuStyle,
  Widget Function(bool menuState, Choice<T> choice)? iconLeft,
  Widget Function(bool menuState, Choice<T> choice)? iconRight,

  ButtonStyle? buttonStyle,
  bool mergeSelectedStyle,
  ButtonStyle? selectedItemButtonStyle,
  EdgeInsetsGeometry? itemPadding,
  EdgeInsetsGeometry? selectedItemPadding,
  Widget Function(Choice<T> choice)? itemMenuButton,
  TextStyle? titleMenuStyle,
  TextStyle? itemMenuStyle,
  String? label,
  TextStyle? textStyleLabel,
  bool selectAllOption,
  ItemColor? itemColor,
  ScrollbarConfig? scrollbarConfig,
  bool staticLabel,
  double iconSpacing,
  FieldWidth? fieldWidth,
  bool closeOnSelect,
}) = StandardMultiSelectField<T>;