MenuItemStyleData class
A class to configure the theme of the dropdown menu items.
Constructors
-
MenuItemStyleData({double height = _kMenuItemHeight, List<
double> ? customHeights, EdgeInsetsGeometry? padding, MaterialStateProperty<Color?> ? overlayColor, SelectedMenuItemBuilder? selectedMenuItemBuilder}) -
Creates a MenuItemStyleData.
const
Properties
-
customHeights
→ List<
double> ? -
Define different heights for the menu items (useful for adding dividers)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the menu item, default value is kMinInteractiveDimension
final
-
overlayColor
→ MaterialStateProperty<
Color?> ? -
Defines the ink response focus, hover, and splash colors.
final
- padding → EdgeInsetsGeometry?
-
The padding of menu items
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedMenuItemBuilder → SelectedMenuItemBuilder?
-
A builder to customize the selected menu item.
final
Methods
-
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.
inherited