Viewport constructor

Viewport(
  1. int width,
  2. int height, [
  3. int? deviceWidth,
  4. int? deviceHeight,
])

Implementation

Viewport(this.width, this.height, [int? deviceWidth, int? deviceHeight])
    : deviceWidth = deviceWidth ?? width,
      deviceHeight = deviceHeight ?? height {
  _check();
}