Select<T> constructor
const
Select<T> ({
- Key? key,
- ValueChanged<
T?> ? onChanged, - SearchFilter<
T> ? searchFilter, - Widget? placeholder,
- bool filled = false,
- FocusNode? focusNode,
- BoxConstraints? constraints,
- BoxConstraints? popupConstraints,
- PopoverConstraint popupWidthConstraint = PopoverConstraint.anchorFixedSize,
- T? value,
- bool orderSelectedFirst = true,
- bool disableHoverEffect = false,
- BorderRadiusGeometry? borderRadius,
- String? searchPlaceholder,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry popoverAlignment = Alignment.topCenter,
- AlignmentGeometry? popoverAnchorAlignment,
- WidgetBuilder? emptyBuilder,
- double? surfaceBlur,
- double? surfaceOpacity,
- bool canUnselect = false,
- bool autoClosePopover = true,
- SelectSearch? onSearch,
- required Widget itemBuilder(
- BuildContext context,
- T item
- required List<
AbstractSelectItem< children,T> >
Implementation
const Select({
super.key,
this.onChanged,
this.searchFilter,
this.placeholder,
this.filled = false,
this.focusNode,
this.constraints,
this.popupConstraints,
this.popupWidthConstraint = PopoverConstraint.anchorFixedSize,
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.canUnselect = false,
this.autoClosePopover = true,
this.onSearch,
required this.itemBuilder,
required this.children,
});