setDevicePixelRatio method

void setDevicePixelRatio(
  1. double d
)

Implementation

void setDevicePixelRatio(double d) {
  if (devicePixelRatio == d) {
    return;
  }
  devicePixelRatio = d;
  markNeedsLayout();
}