drawRect method

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

Renders this nine box with the dimensions provided by dst.

Implementation

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