devicePixelRatio property
final
The number of device pixels for each logical pixel of the encompassing FlutterView. This number might not be a power of two. Indeed, it might not even be an integer. For example, the Nexus 6 has a device pixel ratio of 3.5.
This property is typically only informational. Overriding this property does not rescale the app as the Flutter framework or its rendering pipeline usually does not read this value.
Implementation
final double devicePixelRatio;