badgeIconFromKey function
- String? key
Maps badge icon_key strings to Material icon data.
Implementation
IconData badgeIconFromKey(String? key) {
switch (key) {
case 'star_outline':
return Icons.star_outline_rounded;
case 'local_fire_department':
return Icons.local_fire_department_rounded;
case 'military_tech':
return Icons.military_tech_rounded;
case 'school':
return Icons.school_rounded;
case 'group':
return Icons.group_rounded;
case 'emoji_events':
return Icons.emoji_events_rounded;
default:
return Icons.emoji_events_rounded;
}
}