ControlledSelect<T> constructor

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

Implementation

const ControlledSelect({
  super.key,
  this.controller,
  this.onChanged,
  this.enabled = true,
  this.initialValue,
  this.placeholder,
  this.placeholderWidget,
  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 = false,
  this.autoClosePopover = true,
  required this.popup,
  required this.itemBuilder,
  this.valueSelectionHandler,
  this.valueSelectionPredicate,
});