addPlayer method

void addPlayer(
  1. Player player
)

Implementation

void addPlayer(Player player) {
  state = state.copyWith(players: state.players.add(player));
}