BorderStroke

Function

Common
fun BorderStroke(width: Dp, color: Color) = BorderStroke(width, SolidColor(color))

Create BorderStroke class with width and Color

Parameters

widthwidth of the border in Dp. Use Dp.Hairline for one-pixel border.
colorcolor to paint the border with