pixel static method

double pixel(
  1. double p,
  2. BuildContext context
)

this is for the pixel

Implementation

static double pixel(double p, BuildContext context) {
  return MediaQuery.of(context).devicePixelRatio * p ;
}