getPixelRatio static method
Returns the pixel ratio of the current device's display.
Implementation
static double getPixelRatio(BuildContext? context) {
return MediaQuery.of(context ?? Get.context!).devicePixelRatio;
}
Returns the pixel ratio of the current device's display.
static double getPixelRatio(BuildContext? context) {
return MediaQuery.of(context ?? Get.context!).devicePixelRatio;
}