devicePixelRatioTestValue property

  1. @Deprecated('Use WidgetTester.view.devicePixelRatio instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.9.0-0.1.pre.')
set devicePixelRatioTestValue (double devicePixelRatio)

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

Implementation

@Deprecated(
  'Use WidgetTester.view.devicePixelRatio instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.9.0-0.1.pre.'
)
set devicePixelRatioTestValue(double devicePixelRatio) { // ignore: avoid_setters_without_getters
  _view.devicePixelRatio = devicePixelRatio;
}