drawText static method Null safety
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,
RgbColor.name(color),
);