onGameResize method

  1. @mustCallSuper
void onGameResize(
  1. Vector2 size
)
inherited

Called whenever the size of the top-level Canvas changes.

In addition, this method will be invoked before each onMount.

Implementation

@mustCallSuper
void onGameResize(Vector2 size) => handleResize(size);