setHeight method

void setHeight(
  1. int h
)

Set the height of the table.

Implementation

void setHeight(int h) {
  final headerHeight = _headersView().split('\n').length;
  _viewport = _viewport.copyWith(height: h - headerHeight);
  updateViewport();
}