Enum
enum Team { red, blue }
enum XPLevel { begginer, medium, pro }
class Player {
String name;
int age;
Team team;
XPLevel xp;
Player({
required this.name,
required this.age,
required this.team,
required this.xp,
});
}
void main() {
Player(name: 'Sony', age: 22, team: Team.blue, xp: XPLevel.pro);
}