ListItemShapes

Represents the shapes of a list item in different states.

ListItemShapes

Class

Common
@ExperimentalMaterial3ExpressiveApi
class ListItemShapes(
    val shape: Shape,
    val selectedShape: Shape,
    val pressedShape: Shape,
    val focusedShape: Shape,
    val hoveredShape: Shape,
    val draggedShape: Shape,
)

Represents the shapes of a list item in different states.

Parameters

shapethe default shape of the list item.
selectedShapethe shape of the list item when selected.
pressedShapethe shape of the list item when pressed.
focusedShapethe shape of the list item when focused.
hoveredShapethe shape of the list item when hovered.
draggedShapethe shape of the list item when dragged.

Functions

fun copy(
        shape: Shape? = this.shape,
        selectedShape: Shape? = this.selectedShape,
        pressedShape: Shape? = this.pressedShape,
        focusedShape: Shape? = this.focusedShape,
        hoveredShape: Shape? = this.hoveredShape,
        draggedShape: Shape? = this.draggedShape,
    ): ListItemShapes

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