toLogicalPixels function

double toLogicalPixels(
  1. double devicePixels, [
  2. BuildContext? context
])

Implementation

double toLogicalPixels(double devicePixels, [ BuildContext? context ]) {
  return devicePixels / _devicePixelRatio(context);
}