devicePixelRatio static method

double devicePixelRatio(
  1. BuildContext context
)

It tells you the exact value of the devicePixelratio of the screen

Implementation

static double devicePixelRatio(BuildContext context) {
  return MediaQuery.of(context).devicePixelRatio;
}