draw Straight Or Cubic Line For Wave
fun DrawScope.drawStraightOrCubicLineForWave(pointsData: MutableList<Offset>, lineStyle: LineStyle, yPointOfOrigin: Float = 0.0f, wave: Wave): 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
line Style
: All styles related to the path are included in LineStyle.
y Point Of Origin
: y position of x Axis
wave
: Wave data