StandardMultiSelectField<T> constructor

const StandardMultiSelectField<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. List<Choice<T>>? defaultData,
  7. bool useTextFilter = false,
  8. Decoration? decoration,
  9. bool singleSelection = false,
  10. bool menuHeightBaseOnContent = false,
  11. bool menuWidthBaseOnContent = false,
  12. Widget itemMenuButton(
    1. Choice<T> choice
    )?,
  13. ButtonStyle? buttonStyle,
  14. bool mergeSelectedStyle = false,
  15. ButtonStyle? selectedItemButtonStyle,
  16. EdgeInsetsGeometry? itemPadding,
  17. EdgeInsetsGeometry? selectedItemPadding,
  18. Widget iconLeft(
    1. bool menuState,
    2. Choice<T>? choice
    )?,
  19. Widget iconRight(
    1. bool menuState,
    2. Choice<T>? choice
    )?,
  20. MenuStyle? menuStyle,
  21. double? menuHeight,
  22. double? menuWidth,
  23. Widget? footer,
  24. Widget multiSelectWidget(
    1. Choice<T> choiceList
    )?,
  25. Widget singleSelectWidget(
    1. Choice<T> choiceList
    )?,
  26. bool isMandatory = false,
  27. TextStyle? itemMenuStyle,
  28. TextStyle? titleMenuStyle,
  29. TextStyle? textStyleSingleSelection,
  30. bool cleanCurrentSelection = false,
  31. bool selectAllOption = false,
  32. bool showSelectedTick = true,
  33. Widget? menuLeadingIcon(
    1. Choice<T> choice,
    2. bool isSelected
    )?,
  34. Widget? menuTrailingIcon(
    1. Choice<T> choice,
    2. bool isSelected
    )?,
  35. ItemColor? itemColor,
  36. String? label,
  37. bool staticLabel = false,
  38. TextStyle? textStyleLabel,
  39. Widget labelBuilder(
    1. String label
    )?,
  40. ScrollbarConfig? scrollbarConfig,
  41. double iconSpacing = 0,
  42. FieldWidth? fieldWidth,
  43. bool closeOnSelect = false,
})

Implementation

const StandardMultiSelectField({
  super.key,
  required this.data,
  this.onSelect,
  this.onChanged,
  this.title,
  this.defaultData,
  this.useTextFilter = false,
  this.decoration,
  this.singleSelection = false,
  this.menuHeightBaseOnContent = false,
  this.menuWidthBaseOnContent = false,
  this.itemMenuButton,
  this.buttonStyle,
  this.mergeSelectedStyle = false,
  this.selectedItemButtonStyle,
  this.itemPadding,
  this.selectedItemPadding,
  this.iconLeft,
  this.iconRight,
  this.menuStyle,
  this.menuHeight,
  this.menuWidth,
  this.footer,
  this.multiSelectWidget,
  this.singleSelectWidget,
  this.isMandatory = false,
  this.itemMenuStyle,
  this.titleMenuStyle,
  this.textStyleSingleSelection,
  this.cleanCurrentSelection = false,
  this.selectAllOption = false,
  this.showSelectedTick = true,
  this.menuLeadingIcon,
  this.menuTrailingIcon,
  this.itemColor,
  this.label,
  this.staticLabel = false,
  this.textStyleLabel,
  this.labelBuilder,
  this.scrollbarConfig,
  this.iconSpacing = 0,
  this.fieldWidth,
  this.closeOnSelect = false,
}) : super.internal();