removeFromTeam method
Removes player
from their team.
Implementation
void removeFromTeam(String player) {
final team = _teamByPlayer.remove(player);
if (team != null) {
_playersByTeam[team]?.remove(player);
}
}
Removes player
from their team.
void removeFromTeam(String player) {
final team = _teamByPlayer.remove(player);
if (team != null) {
_playersByTeam[team]?.remove(player);
}
}