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