MultiSelect<T> constructor

const MultiSelect<T>({
  1. Key? key,
  2. ValueChanged<List<T>>? onChanged,
  3. SearchFilter<T>? searchFilter,
  4. Widget? placeholder,
  5. bool filled = false,
  6. FocusNode? focusNode,
  7. BoxConstraints? constraints,
  8. BoxConstraints? popupConstraints,
  9. PopoverConstraint popupWidthConstraint = PopoverConstraint.anchorMinSize,
  10. required List<T> value,
  11. bool showUnrelatedValues = false,
  12. bool orderSelectedFirst = true,
  13. bool disableHoverEffect = false,
  14. BorderRadiusGeometry? borderRadius,
  15. String? searchPlaceholder,
  16. EdgeInsetsGeometry? padding,
  17. AlignmentGeometry popoverAlignment = Alignment.topCenter,
  18. AlignmentGeometry? popoverAnchorAlignment,
  19. WidgetBuilder? emptyBuilder,
  20. double? surfaceBlur,
  21. double? surfaceOpacity,
  22. bool autoClosePopover = false,
  23. SelectSearch? onSearch,
  24. required Widget itemBuilder(
    1. BuildContext context,
    2. T item
    ),
  25. required List<AbstractSelectItem<T>> children,
})

Implementation

const MultiSelect({
  super.key,
  this.onChanged,
  this.searchFilter,
  this.placeholder,
  this.filled = false,
  this.focusNode,
  this.constraints,
  this.popupConstraints,
  this.popupWidthConstraint = PopoverConstraint.anchorMinSize,
  required this.value,
  this.showUnrelatedValues = false,
  this.orderSelectedFirst = true,
  this.disableHoverEffect = false,
  this.borderRadius,
  this.searchPlaceholder,
  this.padding,
  this.popoverAlignment = Alignment.topCenter,
  this.popoverAnchorAlignment,
  this.emptyBuilder,
  this.surfaceBlur,
  this.surfaceOpacity,
  this.autoClosePopover = false,
  this.onSearch,
  required this.itemBuilder,
  required this.children,
});