refreshWidget method

  1. @internal
void refreshWidget()
inherited

When a Game is attached to a GameWidget, this method will force that widget to be rebuilt. This can be used when updating any property which is implemented within the Flutter tree.

Implementation

@internal
void refreshWidget() {
  gameStateListeners.forEach((callback) => callback());
}