debugOverrideDevicePixelRatio function

void debugOverrideDevicePixelRatio(
  1. double? value
)

Overrides the value of ui.FlutterView.devicePixelRatio in tests.

Passing null resets the device pixel ratio to the browser's default.

Implementation

void debugOverrideDevicePixelRatio(double? value) {
  EngineFlutterDisplay.instance.debugOverrideDevicePixelRatio(value);
}