ControlledMultiSelect<T> constructor

const ControlledMultiSelect<T>({
  1. Key? key,
  2. MultiSelectController<T>? controller,
  3. ValueChanged<Iterable<T>?>? onChanged,
  4. bool enabled = true,
  5. Iterable<T>? initialValue,
  6. Widget? placeholder,
  7. bool filled = false,
  8. FocusNode? focusNode,
  9. BoxConstraints? constraints,
  10. BoxConstraints? popupConstraints,
  11. PopoverConstraint popupWidthConstraint = PopoverConstraint.anchorFixedSize,
  12. BorderRadiusGeometry? borderRadius,
  13. EdgeInsetsGeometry? padding,
  14. AlignmentGeometry popoverAlignment = Alignment.topCenter,
  15. AlignmentGeometry? popoverAnchorAlignment,
  16. bool disableHoverEffect = false,
  17. bool canUnselect = true,
  18. bool autoClosePopover = false,
  19. Predicate<Iterable<T>>? showValuePredicate,
  20. required SelectPopupBuilder popup,
  21. required SelectValueBuilder<T> itemBuilder,
  22. SelectValueSelectionHandler<Iterable<T>>? valueSelectionHandler,
  23. SelectValueSelectionPredicate<Iterable<T>>? valueSelectionPredicate,
})

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;