drawLine method

void drawLine(
  1. int x1,
  2. int y1,
  3. int x2,
  4. int y2,
  5. Color color, {
  6. bool antialias = false,
  7. num thickness = 1,
})

Implementation

void drawLine(int x1, int y1, int x2, int y2, Color color,
    {bool antialias = false, num thickness = 1}) {
  img.drawLine(
      _decodedBytes!,
      x1,
      y1,
      x2,
      y2,
      img.getColor(color.toRgbColor().r as int, color.toRgbColor().g as int,
          color.toRgbColor().b as int));
}