pixelRatio property

double get pixelRatio

Returns the device pixel ratio.

Implementation

double get pixelRatio => mediaQuery.devicePixelRatio;