LineStyle

fun LineStyle(    brush: Brush? = null,     arrowHeadType: ArrowHeadType? = null,     width: Dp = Dp.Unspecified,     miter: Dp = Dp.Unspecified,     cap: StrokeCap? = null,     join: StrokeJoin? = null,     dashIntervals: Pair<Dp, Dp>? = null)

Parameters

brush

The Brush used to draw lines and arrows.

arrowHeadType

The ArrowHeadType of arrows, when appropriate.

width

The width of the stroke, in Dp. See Stroke.width.

miter

The miter of the stroke, in Dp. See Stroke.miter.

cap

The cap of the stroke. See Stroke.cap.

join

The join of the stroke. See Stroke.join.

dashIntervals

If non-null, lines will be drawn as dashed lines, with the first element of the pair Dp on, and the second element off. E.g. 10.dp to 10.dp is equivalent to dashedPathEffect(floatArrayOf(10.dp.toPx(), 10.dp.toPx())).

Sources

Link copied to clipboard