drawDifferential static method

void drawDifferential(
  1. PdfGraphics canvas,
  2. double x,
  3. double y, {
  4. double size = 20,
})

Implementation

static void drawDifferential(PdfGraphics canvas, double x, double y,
    {double size = 20}) {
  // Oval intersection
  canvas.drawEllipse(x, y, size / 3, size / 4);
  canvas.strokePath();

  // Line through
  canvas.moveTo(x, y - (size / 2));
  canvas.lineTo(x, y + (size / 2));
  canvas.strokePath();
}