dashedBorder

fun Modifier.dashedBorder(width: Dp, color: Color, shape: Shape = RectangleShape): Modifier

Modify element to add a dashed border styled with appearance specified with a width, a color and a shape, and clip it.

Parameters

width

Thickness of the border in dp

color

Color to paint the border with

shape

Shape of the border