ControlledSelect<T> constructor
const
ControlledSelect<T> ({
- Key? key,
- SelectController<
T> ? controller, - ValueChanged<
T?> ? onChanged, - bool enabled = true,
- 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 = false,
- bool autoClosePopover = true,
- required SelectPopupBuilder popup,
- required SelectValueBuilder<
T> itemBuilder, - SelectValueSelectionHandler<
T> ? valueSelectionHandler, - SelectValueSelectionPredicate<
T> ? valueSelectionPredicate, - Predicate<
T> ? showValuePredicate,
Implementation
const ControlledSelect({
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 = false,
this.autoClosePopover = true,
required this.popup,
required this.itemBuilder,
this.valueSelectionHandler,
this.valueSelectionPredicate,
this.showValuePredicate,
});