draw Straight Or Cubic Line
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
points Data
: List of points to be drawn on the canvas
cubic Points1
: List of average left side values for a given Point(x,y).
cubic Points2
: List of average right side values for a given Point(x,y).
line Style
: All styles related to the path are included in LineStyle.