drawRectangle method Null safety
Draw a rectangle on the underlying image.
Implementation
void drawRectangle(int x1, int y1, int x2, int y2, Color color,
{num thickness = 1}) {
img.drawRect(
_decodedBytes!,
x1: x1,
y1: y1,
x2: x2,
y2: y2,
color: img.ColorRgb8(
color.toRgbColor().r as int,
color.toRgbColor().g as int,
color.toRgbColor().b as int,
),
);
}