setWidth method

void setWidth(
  1. double width
)

Sets the viewport width.

Implementation

void setWidth(double width) {
  this.width = width;
}