resize method

  1. @override
void resize(
  1. int newWidth,
  2. int newHeight
)
override

Resizes the buffer to the new dimensions, preserving existing content where it fits.

Implementation

@override
void resize(int newWidth, int newHeight) {
  throw UnsupportedError('Cannot resize a Viewport');
}