drawRect method
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);
}