Viewport constructor

Viewport({
  1. int x = 0,
  2. int y = 0,
  3. int width = 0,
  4. int height = 0,
  5. DepthRange? depthRange = null,
})

Implementation

Viewport({
  this.x = 0,
  this.y = 0,
  this.width = 0,
  this.height = 0,
  DepthRange? depthRange = null,
}) : this.depthRange = depthRange ?? DepthRange();