ToggleButtonShapes

@Immutable
class ToggleButtonShapes(val shape: Shape, val pressedShape: Shape, val checkedShape: Shape)

The shapes that will be used in toggle buttons. Toggle button will morph between these three shapes depending on the interaction of the toggle button, assuming all of the shapes are CornerBasedShapes.

Constructors

Link copied to clipboard
constructor(shape: Shape, pressedShape: Shape, checkedShape: Shape)

Properties

Link copied to clipboard
val checkedShape: Shape

is the checked shape.

Link copied to clipboard
val pressedShape: Shape

is the pressed shape.

Link copied to clipboard
val shape: Shape

is the unchecked shape.

Functions

Link copied to clipboard
fun copy(shape: Shape? = this.shape, pressedShape: Shape? = this.pressedShape, checkedShape: Shape? = this.checkedShape): ToggleButtonShapes

Returns a copy of this ToggleButtonShapes, optionally overriding some of the values.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int