addGameStateListener method

void addGameStateListener(
  1. VoidCallback callback
)

Implementation

void addGameStateListener(VoidCallback callback) {
  gameStateListeners.add(callback);
}