Select<T> constructor

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

Implementation

const Select({
  super.key,
  this.onChanged,
  this.placeholder,
  this.filled = false,
  this.focusNode,
  this.constraints,
  this.popupConstraints,
  this.popupWidthConstraint = PopoverConstraint.anchorFixedSize,
  this.value,
  this.disableHoverEffect = false,
  this.borderRadius,
  this.padding,
  this.popoverAlignment = Alignment.topCenter,
  this.popoverAnchorAlignment,
  this.canUnselect = false,
  this.autoClosePopover = true,
  this.enabled,
  this.valueSelectionHandler,
  this.valueSelectionPredicate,
  this.showValuePredicate,
  required this.popup,
  required this.itemBuilder,
});