drawString method

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

Draw text on the underlying image.

Implementation

void drawString(int x, int y, String text, String color) {
  img.drawString(
    _decodedBytes!,
    text,
    font: img.arial14,
    x: x,
    y: y,
    color: _toRgbColor(RgbColor.name(color)),
  );
}