BorderStroke

@Immutable
class BorderStroke(val width: Int, val brush: Brush)

A line width wide filled with brush: what border draws.

Two strokes compare equal when their widths and brushes do, so a chain rebuilt from unchanged values declares the same border and nothing repaints.

Constructors

Link copied to clipboard
constructor(width: Int, brush: Brush)
constructor(width: Int, color: Color)

A line width wide in color.

Properties

Link copied to clipboard

the line's fill, resolved against the decorated box.

Link copied to clipboard
val width: Int

how wide the line is, in the component's own units; 0 or less draws nothing.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String