line

fun line(startPoint: Point, endPoint: Point): Shape

A line segment with the specified start and stop x,y coordinates that can be drawn on a Canvas.

Parameters

topLeft

The coordinates of the top left point of the rectangle

size

The size of the rectangle

cornerRadius

The radius of the rounded corners