lineTo method

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

Implementation

@override
void lineTo(double x, double y) {
  assert(!_expectsMove);
  // ignore: parameter_assignments
  x -= _offsetX;
  // ignore: parameter_assignments
  y -= _offsetY;
  _clipLine(_prevX, _prevY, x, y);
  _prevX = x;
  _prevY = y;
}