SelectTheme class
Theme data for customizing Select widget appearance and behavior.
This class defines the visual and behavioral properties that can be applied to Select widgets, including popup constraints, positioning, styling, and interaction behaviors. These properties can be set at the theme level to provide consistent behavior across the application.
- Inheritance
-
- Object
- ComponentThemeData
- SelectTheme
Constructors
- SelectTheme({BoxConstraints? popupConstraints, AlignmentGeometry? popoverAlignment, AlignmentGeometry? popoverAnchorAlignment, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? padding, bool? disableHoverEffect, bool? canUnselect, bool? autoClosePopover})
-
Creates a select theme.
const
Properties
- autoClosePopover → bool?
-
Whether to automatically close the popover after selection.
final
- borderRadius → BorderRadiusGeometry?
-
Border radius for select items.
final
- canUnselect → bool?
-
Whether the selected item can be unselected.
final
- disableHoverEffect → bool?
-
Whether to disable hover effects on items.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsetsGeometry?
-
Padding inside select items.
final
- popoverAlignment → AlignmentGeometry?
-
Alignment of the popover relative to the anchor.
final
- popoverAnchorAlignment → AlignmentGeometry?
-
Anchor alignment for the popover.
final
- popupConstraints → BoxConstraints?
-
Constraints for the popup menu size.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{ValueGetter< BoxConstraints?> ? popupConstraints, ValueGetter<AlignmentGeometry?> ? popoverAlignment, ValueGetter<AlignmentGeometry?> ? popoverAnchorAlignment, ValueGetter<BorderRadiusGeometry?> ? borderRadius, ValueGetter<EdgeInsetsGeometry?> ? padding, ValueGetter<bool?> ? disableHoverEffect, ValueGetter<bool?> ? canUnselect, ValueGetter<bool?> ? autoClosePopover}) → SelectTheme - Creates a copy of this theme with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override