MenuBehavior class abstract final

What Compose's Menu sets in code (behavior.yaml, verified at the pin).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

checkIconFadeMotion → const ExpressiveMotionKey
The spring a checked item's leading icon fades in and out with. (Menu.kt line 2014.)
checkIconSizeMotion → const ExpressiveMotionKey
The spring a checked item's leading icon grows in and shrinks away with. (Menu.kt line 2013.)
closedScale → const double
The scale a menu opens from and closes to (around its transform origin at the anchor). (Menu.kt line 2403.)
dividerHorizontalPadding → const Dp
A divider's inset from its group's sides. (MenuDefaults.kt line 180.)
dividerVerticalPadding → const Dp
The gap above and below a divider between a group's items. (MenuDefaults.kt line 180.)
groupLabelMinHeight → const Dp
A group label's least height. (Menu.kt line 2394.)
groupLabelPaddingEnd → const Dp
A group label's padding at its end. (MenuDefaults.kt line 187.)
groupLabelPaddingStart → const Dp
A group label's padding at its start. (MenuDefaults.kt line 187.)
groupShapeMotion → const ExpressiveMotionKey
The spring a group's corners morph with between active and inactive (hover left the group). (Menu.kt line 294.)
groupVerticalPadding → const Dp
The padding above the first and below the last item of a menu group. (Menu.kt line 2379.)
horizontalMargin → const Dp
The least gap a menu keeps to the window's start and end edges when it is placed. (Menu.kt line 2373.)
itemColorMotion → const ExpressiveMotionKey
The spring an item's container colour changes with when it is selected. (Menu.kt line 2016.)
itemHorizontalPadding → const Dp
An item's content padding at its start and end. (Menu.kt line 2377.)
itemIconSpacing → const Dp
The gap between an item's leading icon and its text, and between its text and trailing content (touch sizing). (MenuDefaults.kt line 855.)
itemInset → const Dp
The gap between an item's container and its group's sides. (Menu.kt line 2381.)
itemInsetVerticalWithSupportingText → const Dp
The gap above and below an item's container when the item has supporting text. (Menu.kt line 2383.)
itemMaxWidth → const Dp
A menu item's (and group label's) greatest width. (Menu.kt line 2391.)
itemMinWidth → const Dp
A menu item's (and group label's) least width. (Menu.kt line 2389.)
itemShapeMotion → const ExpressiveMotionKey
The spring an item's corners morph with between rest and selected. (Menu.kt line 2013.)
itemVerticalPadding → const Dp
An expressive (grouped, checkable or selectable) item's content padding at its top and bottom. (MenuDefaults.kt line 863.)
openAlphaMotion → const ExpressiveMotionKey
The spring a dropdown menu fades open and closed with (both menu overloads). (Menu.kt line 1831.)
openScaleMotion → const ExpressiveMotionKey
The spring a dropdown menu scales open and closed with (both menu overloads). (Menu.kt line 1830.)
verticalMargin → const Dp
The least gap a menu keeps to the window's top and bottom edges when it is placed. (Menu.kt line 2325.)