pixelRatio property

double? get pixelRatio

设备的像素密度 The size of the media in logical pixels (e.g, the size of the screen).

Implementation

double? get pixelRatio => _data.devicePixelRatio;