MultiSelectField<T> constructor

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

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,
  required void Function(List<Choice<T>> choiceList, bool isFromDefaultData)
  onSelect,
  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)? iconLeft,
  Widget Function(bool menuState)? iconRight,
  ButtonStyle? buttonStyle,
  Widget? itemMenuButton,
  TextStyle? titleMenuStyle,
  TextStyle? itemMenuStyle,
  String? label,
  TextStyle? textStyleLabel,
  bool selectAllOption,
  ItemColor? itemColor,
  ScrollbarConfig? scrollbarConfig,
}) = StandardMultiSelectField<T>;