MenuItemShapes

Class
Common
@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

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.