Class

BorderStroke

Class to specify the stroke to draw border with.

Source set: Common

Added in 1.11.0-rc01

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

Class to specify the stroke to draw border with.

Parameters

width width of the border in Dp. Use Dp.Hairline for one-pixel border.
brush brush to paint the border with

Functions

copy

Added in 1.11.0-rc01

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