setResolution method

void setResolution({
  1. required int width,
  2. required int height,
})

Sets the resolution of the device.

Implementation

void setResolution({required int width, required int height}) {
  set(3, width.toDouble());
  set(4, height.toDouble());
}