addClientToGame method

void addClientToGame(
  1. PlayerID id,
  2. GameCode gameId
)

Implementation

void addClientToGame(PlayerID id, GameCode gameId) {
  if (_clientGames[id] == null) {
    _clientGames[id] = {};
  }
  _clientGames[id]!.add(gameId);
}