Line

constructor(strokeWidth: Dp = 2.dp, smoothing: Float = 0.5f, cap: StrokeCap = StrokeCap.Round)

Parameters

strokeWidth

Width of the line

smoothing

Bezier curve smoothing factor (0 = sharp corners, 1 = maximum smoothing)

cap

Stroke cap style for line ends