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();
}
🤡
I may be slow to respond.
Building modern & functional Flutter apps & open-source libraries in Dart
-
Kian technology
- Tunisia
- @gnassro
- in/gnassro
Pinned Loading
-
datetime_loop
datetime_loop PublicA Flutter package that provides a widget to listen to the system's datetime and trigger a rebuild based on the specified time unit.
C++ 3
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.