addPlayer method Null safety
- Player player
Implementation
void addPlayer(Player player) {
state = state.copyWith(players: state.players.add(player));
}
void addPlayer(Player player) {
state = state.copyWith(players: state.players.add(player));
}