Optional pixel ratio to take screenshot with, defaults to device pixel ratio.
final double? pixelRatio;