devicePixelRatioTestValue property Null safety

void devicePixelRatioTestValue=(double devicePixelRatio)

Hides the real device pixel ratio and reports the given devicePixelRatio instead.

Implementation

set devicePixelRatioTestValue(double devicePixelRatio) { // ignore: avoid_setters_without_getters
  _devicePixelRatio = devicePixelRatio;
  onMetricsChanged?.call();
}