toPath method

Path toPath()

Converts this cubic line segment into a Flutter Path object.

Implementation

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