ToggleButtonBehavior class abstract final

What Compose's ToggleButton 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

borderColorMotion → const ExpressiveMotionKey
The spring a toggle button's border colour animates with. (ToggleButton.kt line 1736.)
borderWidthMotion → const ExpressiveMotionKey
The spring a toggle button's border width animates with. (ToggleButton.kt line 1728.)
checkedShape → const ExpressiveShapeKey
A round small toggle button checks to the square shape: Compose names SelectedContainerShapeSquare for it, the token naming the target shape (the DB names the variant; overrides.yaml selected-shape-naming). (ToggleButton.kt line 715.)
pressedShape → const Dp
The small toggle button's pressed corner radius: Compose uses RoundedCornerShape(6.dp), not ButtonSmallTokens.PressedContainerShape (8). (ToggleButton.kt line 711.)
shapeMotion → const ExpressiveMotionKey
The spring a toggle button's shape morphs with between unchecked, pressed and checked. (ToggleButton.kt line 176.)