setNextPlayer method
Returns a copy of the GenericGame with the current player being the one
with id player
Implementation
GenericGame setNextPlayer(PlayerID player) =>
copyWith(currentPlayerIndex: players.indexWhere((p) => p.id == player));
Returns a copy of the GenericGame with the current player being the one
with id player
GenericGame setNextPlayer(PlayerID player) =>
copyWith(currentPlayerIndex: players.indexWhere((p) => p.id == player));