removeFromTeam method

void removeFromTeam(
  1. String player
)

Removes player from their team.

Implementation

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