drawText static method

void drawText(
  1. Painter painter,
  2. int x,
  3. int y,
  4. String text,
  5. {String color = 'red'}
)

Draw text on the Painter at the x and y position.

Implementation

static void drawText(Painter painter, int x, int y, String text,
        {String color = 'red'}) =>
    painter.drawString(
      x,
      y,
      text,
      color,
    );