MultiSelectField<T> constructor
const
MultiSelectField<T> ({
- Key? key,
- required List<
Choice< data(),T> > - required void onSelect(),
- Widget title(
- bool isEmpty
- List<
Choice< ? defaultData,T> > - bool useTextFilter = false,
- Decoration? decoration,
- bool singleSelection = false,
- Widget? itemMenuButton,
- ButtonStyle? buttonStyle,
- Widget iconLeft(
- Widget iconRight(
- Widget multiSelectWidget(
- Choice<
T> choiceList
- Choice<
- Widget singleSelectWidget(
- Choice<
T> choiceList
- Choice<
- bool isMandatory = false,
- TextStyle? itemMenuStyle,
- TextStyle? titleMenuStyle,
- TextStyle? textStyleSingleSelection,
- bool cleanCurrentSelection = false,
- bool selectAllOption = false,
- ItemColor? itemColor,
- String? label,
- TextStyle? textStyleLabel,
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,
this.cleanCurrentSelection = false,
this.selectAllOption = false,
this.itemColor,
this.label,
this.textStyleLabel,
});