1. override
void lineTo(double x, double y)

Source

@override
void lineTo(double x, double y) {
  _path.lineTo(x, y);
}