Class

MenuItemShapes

Represents the shapes used for a DropdownMenuItem in its various states.

Source set: Common

Added in 1.5.0-alpha17

@ExperimentalMaterial3ExpressiveApi
class MenuItemShapes(val shape: Shape, val selectedShape: Shape)

Represents the shapes used for a DropdownMenuItem in its various states.

Parameters

shape the Shape to use when the item is unselected.
selectedShape the Shape to use when the item is selected.

Functions

copy

Added in 1.5.0-alpha17

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

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