poll method
Implementation
@override
void poll() {
width = _canvas.width!;
height = _canvas.height!;
if (width != _lastWidth || height != _lastHeight) {
graphics.changeBack(width, height);
_lastWidth = width;
_lastHeight = height;
}
}