pixelRatio property

double get pixelRatio

The number of device pixels for each logical pixel.

Implementation

double get pixelRatio => window.implicitView!.devicePixelRatio;