resetDevicePixelRatio method

void resetDevicePixelRatio()

Resets devicePixelRatio to the default value for this display.

This will also reset the devicePixelRatio for any TestFlutterViews that are related to this display.

Implementation

void resetDevicePixelRatio() {
  _devicePixelRatio = null;
  _platformDispatcher.onMetricsChanged?.call();
}