Converts this line to Cubic Path.
Path toPath() => Path() ..moveTo(dx, dy) ..cubicTo(cpStart.dx, cpStart.dy, cpEnd.dx, cpEnd.dy, end.dx, end.dy);