devicePixelRatio property

  1. @override
double devicePixelRatio
override

The device pixel ratio to use for this test.

Defaults to the value provided by FlutterView.devicePixelRatio. This can only be set in a test environment to emulate different view configurations. A standard FlutterView is not mutable from the framework.

See also:

Implementation

@override
double get devicePixelRatio => _display._devicePixelRatio ?? _view.devicePixelRatio;
void devicePixelRatio=(double value)

Implementation

set devicePixelRatio(double value) {
  _display.devicePixelRatio = value;
}