Select<T> constructor
const
Select<T> ({
- Key? key,
- ValueChanged<
T?> ? onChanged, - String? placeholder,
- Widget? placeholderWidget,
- bool filled = false,
- FocusNode? focusNode,
- BoxConstraints? constraints,
- BoxConstraints? popupConstraints,
- PopoverConstraint popupWidthConstraint = PopoverConstraint.anchorFixedSize,
- T? value,
- bool disableHoverEffect = false,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry popoverAlignment = Alignment.topCenter,
- AlignmentGeometry? popoverAnchorAlignment,
- bool canUnselect = false,
- bool? autoClosePopover = true,
- bool? enabled,
- SelectValueSelectionHandler<
T> ? valueSelectionHandler, - SelectValueSelectionPredicate<
T> ? valueSelectionPredicate, - required SelectPopupBuilder popup,
- required SelectValueBuilder<
T> itemBuilder,
Implementation
const Select({
super.key,
this.onChanged,
this.placeholder,
this.placeholderWidget,
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,
required this.popup,
required this.itemBuilder,
});