resize method

Future<void> resize({
  1. required int width,
  2. required int height,
})

Implementation

Future<void> resize({required int width, required int height}) async {
  if (_lastResizeWidth == width && _lastResizeHeight == height) {
    return;
  }
  _lastResizeWidth = width;
  _lastResizeHeight = height;
  _queueInput(channel: 4, width: width, height: height);
}