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. List<Choice<T>>? defaultData,
  6. bool useTextFilter = false,
  7. Decoration? decoration,
  8. bool singleSelection = false,
  9. bool menuHeightBaseOnContent = false,
  10. bool menuWidthBaseOnContent = false,
  11. Widget? itemMenuButton,
  12. ButtonStyle? buttonStyle,
  13. Widget iconLeft(
    1. bool menuState
    )?,
  14. Widget iconRight(
    1. bool menuState
    )?,
  15. MenuStyle? menuStyle,
  16. double? menuHeight,
  17. double? menuWidth,
  18. Widget? footer,
  19. Widget multiSelectWidget(
    1. Choice<T> choiceList
    )?,
  20. Widget singleSelectWidget(
    1. Choice<T> choiceList
    )?,
  21. bool isMandatory = false,
  22. TextStyle? itemMenuStyle,
  23. TextStyle? titleMenuStyle,
  24. TextStyle? textStyleSingleSelection,
})

Implementation

const MultiSelectField({
  super.key,
  required this.data,
  required this.onSelect,
  this.title,
  this.defaultData,
  this.useTextFilter = false,
  this.decoration,
  this.singleSelection = false,
  this.menuHeightBaseOnContent = false,
  this.menuWidthBaseOnContent = false,
  this.itemMenuButton,
  this.buttonStyle,
  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,
});