drawString method

void drawString(
  1. int x,
  2. int y,
  3. String text,
  4. Color color
)

Draw text on the underlying image.

Implementation

void drawString(int x, int y, String text, Color color) {
  img.drawString(
    _decodedBytes!,
    text,
    font: img.arial14,
    x: x,
    y: y,
    color: img.ColorRgb8(
      color.toRgbColor().r as int,
      color.toRgbColor().g as int,
      color.toRgbColor().b as int,
    ),
  );
}