resize method

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

Resize the renderer (and its underlying buffer) to new dimensions. Invalidates any cached nextBuffer reference.

Throws ArgumentError when width or height is non-positive.

Implementation

void resize(int width, int height) {
  _checkNotDisposed();
  validateRendererDimensions(width, height);
  try {
    _bindings.resizeRenderer(_handle, width, height);
  } finally {
    _invalidateBorrowedBuffers();
  }
}