StandardMultiSelectField<T> constructor
const
StandardMultiSelectField<T> ({
- Key? key,
- required List<
Choice< data(),T> > - void onSelect()?,
- void onChanged()?,
- Widget title(
- bool isEmpty
- List<
Choice< ? defaultData,T> > - bool useTextFilter = false,
- Decoration? decoration,
- bool singleSelection = false,
- Widget itemMenuButton(
- Choice<
T> choice
- Choice<
- ButtonStyle? buttonStyle,
- bool mergeSelectedStyle = false,
- ButtonStyle? selectedItemButtonStyle,
- EdgeInsetsGeometry? itemPadding,
- EdgeInsetsGeometry? selectedItemPadding,
- Widget iconLeft(
- Choice<
T> choice
- Widget iconRight(
- Choice<
T> choice
- 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,
- bool staticLabel = false,
- TextStyle? textStyleLabel,
- ScrollbarConfig? scrollbarConfig,
- double iconSpacing = 0,
- FieldWidth? fieldWidth,
- 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.itemColor,
this.label,
this.staticLabel = false,
this.textStyleLabel,
this.scrollbarConfig,
this.iconSpacing = 0,
this.fieldWidth,
this.closeOnSelect = false,
}) : super.internal();