drawStraightOrCubicLine

fun DrawScope.drawStraightOrCubicLine(pointsData: MutableList<Offset>, cubicPoints1: MutableList<Offset>, cubicPoints2: MutableList<Offset>, lineStyle: LineStyle): Path

DrawScope.drawStraightOrCubicLine extension method used for drawing a straight/cubic line for a given Point(x,y).

Parameters

pointsData

: List of points to be drawn on the canvas

cubicPoints1

: List of average left side values for a given Point(x,y).

cubicPoints2

: List of average right side values for a given Point(x,y).

lineStyle

: All styles related to the path are included in LineStyle.