updateSize method
Allows the web container or terminal emulator to notify us of resizing.
Implementation
void updateSize(Point<int> newSize) {
if (_currentSize != newSize) {
_currentSize = newSize;
if (!_sizeController.isClosed) {
_sizeController.add(newSize);
}
}
}