toPath method

Path toPath()

Converts this line to Cubic Path.

Implementation

Path toPath() => Path()
  ..moveTo(dx, dy)
  ..cubicTo(cpStart.dx, cpStart.dy, cpEnd.dx, cpEnd.dy, end.dx, end.dy);