resize method
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));
}