BorderStyle
constructor(color: ColorType, width: Dp, miter: Dp? = null, cap: StrokeCap = DefaultCap, join: StrokeJoin = DefaultJoin, pathEffect: PathEffect? = null)
Parameters
color
Configure the color of the border. Color can be solid color or gradient
width
Configure the width of the stroke in Dp
miter
Set the border stroke miter value. This is used to control the behavior of miter joins when the joins angle is sharp. This value must be >= 0.dp
cap
Return the paint's Cap, controlling how the start and end of stroked lines and paths are treated. The default is StrokeCap.Butt
join
Set's the treatment where lines and curve segments join on a stroked path. The default is StrokeJoin.Miter
pathEffect
Effect to apply to the stroke, null indicates a solid stroke line is to be drawn