Skip to content

Instantly share code, notes, and snippets.

@jeovazero
Created March 6, 2021 09:36
Show Gist options
  • Save jeovazero/bbc779c5367bc9af12fe586a1db362cb to your computer and use it in GitHub Desktop.
Save jeovazero/bbc779c5367bc9af12fe586a1db362cb to your computer and use it in GitHub Desktop.
// jeotario's academy
enum Team { SkGaming, Furia, MiBr, Liquid, GodSent }
void infoTeam(Team team) {
switch(team) {
case Team.MiBr:
case Team.Furia:
case Team.GodSent:
print('Time cheio de brasileiros');
break;
case Team.Liquid:
print('Time do professor Fallen');
break;
case Team.SkGaming:
print('Legendary Team');
break;
default:
print('Nunca nem vi');
}
}
void main () {
List<Team> allTeams = Team.values;
print(allTeams);
infoTeam(Team.Furia);
infoTeam(Team.SkGaming);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment