setSize method

void setSize(
  1. int width,
  2. int height
)

Sets the size.

Implementation

void setSize(int width, int height) {
  _width = width;
  _height = height;
  help = help.copyWith(width: width);
  // Update filter input width
  final promptWidth = styles.title.render(filterInput.prompt).length;
  filterInput.width = width - promptWidth;
  _updatePagination();
  updateKeybindings();
}