@override void render(Canvas canvas) { if (cache == null) { return; } canvas.save(); canvas.scale(1 / pixelRatio); canvas.drawImage(cache!, Offset.zero, _imagePaint); canvas.restore(); }