drawRect method

void drawRect(
  1. Canvas c,
  2. Rect rect
)

Renders this nine box with the dimensions provided by rect.

Implementation

void drawRect(Canvas c, Rect rect) {
  final position = Vector2(rect.left, rect.top);
  final size = Vector2(rect.width, rect.height);
  draw(c, position, size);
}