MultiSelectField<T> constructor
const
MultiSelectField<T> ({
- Key? key,
- required List<
Choice< data(),T> > - void onSelect()?,
- void onChanged()?,
- Widget title(
- bool isEmpty
- Widget singleSelectWidget(
- Choice<
T> choiceList
- Choice<
- Widget multiSelectWidget(
- Choice<
T> choiceList
- Choice<
- bool cleanCurrentSelection,
- List<
Choice< ? defaultData,T> > - bool isMandatory,
- bool singleSelection,
- bool useTextFilter,
- Decoration? decoration,
- TextStyle? textStyleSingleSelection,
- Widget iconLeft(
- Choice<
T> choice
- Widget iconRight(
- Choice<
T> choice
- ButtonStyle? buttonStyle,
- bool mergeSelectedStyle,
- ButtonStyle? selectedItemButtonStyle,
- EdgeInsetsGeometry? itemPadding,
- EdgeInsetsGeometry? selectedItemPadding,
- Widget itemMenuButton(
- Choice<
T> choice
- Choice<
- TextStyle? titleMenuStyle,
- TextStyle? itemMenuStyle,
- String? label,
- TextStyle? textStyleLabel,
- bool selectAllOption,
- ItemColor? itemColor,
- ScrollbarConfig? scrollbarConfig,
- bool staticLabel,
- double iconSpacing,
- FieldWidth? fieldWidth,
- bool closeOnSelect,
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,
void Function(List<Choice<T>> choiceList, bool isFromDefaultData)? onSelect,
void Function(List<Choice<T>> selectedItems)? onChanged,
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, Choice<T> choice)? iconLeft,
Widget Function(bool menuState, Choice<T> choice)? iconRight,
ButtonStyle? buttonStyle,
bool mergeSelectedStyle,
ButtonStyle? selectedItemButtonStyle,
EdgeInsetsGeometry? itemPadding,
EdgeInsetsGeometry? selectedItemPadding,
Widget Function(Choice<T> choice)? itemMenuButton,
TextStyle? titleMenuStyle,
TextStyle? itemMenuStyle,
String? label,
TextStyle? textStyleLabel,
bool selectAllOption,
ItemColor? itemColor,
ScrollbarConfig? scrollbarConfig,
bool staticLabel,
double iconSpacing,
FieldWidth? fieldWidth,
bool closeOnSelect,
}) = StandardMultiSelectField<T>;