dottedBorder

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

Modify element to add a dotted 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