@override void render(Canvas canvas) { super.render(canvas); if (isVisible) { sprite?.render( canvas, position: position, size: size, overridePaint: paint, ); } }