drawRect abstract method
Draws a filled rectangle on the canvas.
The rectangle is defined by rect and can have optional background and
foreground colors.
Implementation
void drawRect({
required Rect rect,
Color? background,
Foreground? foreground,
});