ControlledMultiSelect<T> constructor
const
ControlledMultiSelect<T> ({
- Key? key,
- MultiSelectController<
T> ? controller, - ValueChanged<
Iterable< ? onChanged,T> ?> - bool enabled = true,
- Iterable<
T> ? initialValue, - Widget? placeholder,
- bool filled = false,
- FocusNode? focusNode,
- BoxConstraints? constraints,
- BoxConstraints? popupConstraints,
- PopoverConstraint popupWidthConstraint = PopoverConstraint.anchorFixedSize,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry popoverAlignment = Alignment.topCenter,
- AlignmentGeometry? popoverAnchorAlignment,
- bool disableHoverEffect = false,
- bool canUnselect = true,
- bool autoClosePopover = false,
- Predicate<
Iterable< ? showValuePredicate,T> > - required SelectPopupBuilder popup,
- required SelectValueBuilder<
T> itemBuilder, - SelectValueSelectionHandler<
Iterable< ? valueSelectionHandler,T> > - SelectValueSelectionPredicate<
Iterable< ? valueSelectionPredicate,T> >
Implementation
const ControlledMultiSelect({
super.key,
this.controller,
this.onChanged,
this.enabled = true,
this.initialValue,
this.placeholder,
this.filled = false,
this.focusNode,
this.constraints,
this.popupConstraints,
this.popupWidthConstraint = PopoverConstraint.anchorFixedSize,
this.borderRadius,
this.padding,
this.popoverAlignment = Alignment.topCenter,
this.popoverAnchorAlignment,
this.disableHoverEffect = false,
this.canUnselect = true,
this.autoClosePopover = false,
this.showValuePredicate,
required this.popup,
required SelectValueBuilder<T> itemBuilder,
this.valueSelectionHandler,
this.valueSelectionPredicate,
}) : multiItemBuilder = itemBuilder;