Created
March 6, 2021 09:36
-
-
Save jeovazero/bbc779c5367bc9af12fe586a1db362cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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