poll method

  1. @override
void poll()
override

Implementation

@override
void poll() {
  width = _canvas.width!;
  height = _canvas.height!;

  if (width != _lastWidth || height != _lastHeight) {
    graphics.changeBack(width, height);

    _lastWidth = width;
    _lastHeight = height;
  }
}