pixelRatio property
double?
get
pixelRatio
设备的像素密度 The size of the media in logical pixels (e.g, the size of the screen).
Implementation
double? get pixelRatio =>
_context != null ? MediaQuery.of(_context!).devicePixelRatio : 1;