setWidth method

void setWidth(
  1. int w
)

Set the width of the table.

Implementation

void setWidth(int w) {
  _viewport = _viewport.copyWith(width: w);
  updateViewport();
}