You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
justMusic/Sources/justMUSIC/lib/values/icons.dart

34 lines
839 B

enum JustMusicIcon {
profile,
spotify,
trash,
cross,
history,
theme,
notification
}
extension MyIconExtension on JustMusicIcon {
String get imagePath {
switch (this) {
case JustMusicIcon.profile:
return 'assets/images/profile_icon.png';
case JustMusicIcon.spotify:
return 'assets/images/spotify_icon.png';
case JustMusicIcon.trash:
return 'assets/images/trash_icon.png';
case JustMusicIcon.cross:
return 'assets/images/cross_icon.png';
case JustMusicIcon.history:
return 'assets/images/history_icon.png';
case JustMusicIcon.theme:
return 'assets/images/theme_icon.png';
case JustMusicIcon.notification:
return 'assets/images/notification_icon.png';
default:
throw 'assets/images/unknown.png';
}
}
}