Set the team of player.
team
player
void setTeam(String player, String team) { removeFromTeam(player); _teamByPlayer[player] = team; _playersByTeam.putIfAbsent(team, () => <String>[]).add(player); }