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.

Implementation

void resize(int width, int height) {
  if (_disposed) throw StateError('Renderer is disposed');
  _bindings.resizeRenderer(_ptr, width, height);
  _nextBuffer?.invalidate();
  _nextBuffer = null;
}