Class

ChipShapes

The shapes that will be used in chips.

Source set: Common
@Material3ExpressiveApi
class ChipShapes(
    val shape: Shape,
    val selectedShape: Shape,
    val pressedShape: Shape = selectedShape,
)

The shapes that will be used in chips. Chip will morph between these shapes depending on the state of the chip, assuming all of the shapes are CornerBasedShapes.

Functions

copy

fun copy(
        shape: Shape? = this.shape,
        selectedShape: Shape? = this.selectedShape,
        pressedShape: Shape? = this.pressedShape,
    ) =
        ChipShapes(
            shape = shape.takeOrElse { this.shape },
            selectedShape = selectedShape.takeOrElse { this.selectedShape },
            pressedShape = pressedShape.takeOrElse { this.pressedShape },
        )

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

Last updated: