Class

BorderStroke

Class to specify the stroke to draw border with.

Source set: Common
public class BorderStroke(public val width: Dp, public 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

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String

copy

Source set: Common
public fun copy(width: Dp = this.width, brush: Brush = this.brush): BorderStroke
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: