resize method

Future<void> resize(
  1. int width,
  2. int height
)

Sends a WindowSizeMsg for the new size. Later programs start with it.

Implementation

Future<void> resize(int width, int height) {
  this.width = width;
  this.height = height;
  if (_program case final program?) {
    withWindowSize(width, height)(program);
  }
  return send(WindowSizeMsg(width, height));
}