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();
}-
Notifications
You must be signed in to change notification settings - Fork 0
Config files for my GitHub profile.
gnassro/gnassro
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Config files for my GitHub profile.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published

