void lineTo(double x, double y)

Adds a straight line segment from the current point to the given point.

Source

void lineTo(double x, double y) native "Path_lineTo";