Hi, I'm Nasreddine Elghozi!
Senior Flutter Developer
A little more about me...
enum SkillLevel {
beginner,
intermediate,
advanced,
expert,
}
mixin AdditionalFunctionality {
List<String> hobbiesList();
}
class AboutMe with AdditionalFunctionality {
final String currentPosition;
final Map<String, SkillLevel> skills;
final List<String> hobbies;
AboutMe({
required this.currentPosition,
required this.skills,
required this.hobbies
});
void knowMe() {
print("Current Position: $currentPosition");
print("Skills:");
skills.forEach((skill, level) {
print("$skill: $level");
});
print("My hobbies:");
print(hobbiesList());
}
@override
List<String> hobbiesList() {
return hobbies;
}
}
void main() {
AboutMe aboutMe = AboutMe(
currentPosition: "Senior Flutter Developer",
skills: {
"Flutter": SkillLevel.advanced,
"Dart": SkillLevel.advanced,
"Ubuntu": SkillLevel.advanced,
"Shell": SkillLevel.advanced,
"Networking": SkillLevel.intermediate,
"Java": SkillLevel.intermediate,
"PHP": SkillLevel.intermediate
},
hobbies: [
"Football",
"Chess",
"Watching The lord of the rings every month"
]
);
aboutMe.knowMe();
}