num pixelRatio

Gets and sets the pixel ratio of the Stage.

Source

num get pixelRatio => _pixelRatio;
void pixelRatio=(num value)

Source

set pixelRatio(num value) {
  _pixelRatio = ensureNum(value);
  _updateCanvasSize();
}