pixelRatio property

  1. @override
num get pixelRatio
override

The current pixel ration of this canvas. See devicePixelRatio.

Implementation

@override
num get pixelRatio => _widgetPainter.pixelRatio;
  1. @override
set pixelRatio (num pr)
override

Sets the pixel ration of this canvas and refreshes it.

Implementation

@override
set pixelRatio(num pr) {
  if (_widgetPainter.setPixelRatio(pr)) {
    refresh();
  }
}