drawObject method

void drawObject(
  1. Canvas canvas,
  2. Paint paint
)

Implementation

void drawObject(Canvas canvas, Paint paint) {
  canvas.drawImageNine(
    image,
    Rect.zero,
    Rect.fromCenter(center: center, width: size.width, height: size.height),
    paint,
  );
}