onGameResize method
This is the resize hook; every time the game widget is resized, this hook is called.
The default implementation just sets the new size on the size field
Implementation
@mustCallSuper
void onGameResize(Vector2 size) {
_size = (_size ?? Vector2.zero())..setFrom(size);
}