drawGridLine method

  1. @protected
void drawGridLine(
  1. Canvas c,
  2. double x,
  3. double y,
  4. Path gridLinePath,
)

Draws one vertical grid line at the pixel position x over the content height, using gridLinePath as a scratch path. y is not used here.

Implementation

@protected
void drawGridLine(ui.Canvas c, double x, double y, ui.Path gridLinePath) {
  gridLinePath.moveTo(x, viewPortHandler.contentBottom);
  gridLinePath.lineTo(x, viewPortHandler.contentTop);

  c.drawPathP(gridLinePath, paintGrid);

  gridLinePath.reset();
}