drawRect method

void drawRect(
  1. Canvas c, [
  2. Rect? dst
])

Renders this nine box with the dimensions provided by dst.

Implementation

void drawRect(Canvas c, [Rect? dst]) {
  c.drawImageNine(sprite.image, center, dst ?? _dst, _whitePaint);
}