BorderStroke

Class

Common
class BorderStroke(val width: Dp, val brush: Brush)

Class to specify the stroke to draw border with.

Parameters

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

Functions

fun copy(width: Dp = this.width, brush: Brush = this.brush): BorderStroke