MultiSelectField<T> constructor
const
MultiSelectField<T> ({
- Key? key,
- required List<
Choice< data(),T> > - required void onSelect(),
- 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(
- Widget iconRight(
- ButtonStyle? buttonStyle,
- Widget? itemMenuButton,
- TextStyle? titleMenuStyle,
- TextStyle? itemMenuStyle,
- String? label,
- TextStyle? textStyleLabel,
- bool selectAllOption,
- ItemColor? itemColor,
- ScrollbarConfig? scrollbarConfig,
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,
required void Function(List<Choice<T>> choiceList, bool isFromDefaultData)
onSelect,
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)? iconLeft,
Widget Function(bool menuState)? iconRight,
ButtonStyle? buttonStyle,
Widget? itemMenuButton,
TextStyle? titleMenuStyle,
TextStyle? itemMenuStyle,
String? label,
TextStyle? textStyleLabel,
bool selectAllOption,
ItemColor? itemColor,
ScrollbarConfig? scrollbarConfig,
}) = StandardMultiSelectField<T>;