getWeekday function
Implementation
String getWeekday(int weekday) {
final Map<int, String> weekMap = {
0: 'Sunday',
1: 'Monday',
2: 'Tuesday',
3: 'Wednesday',
4: 'Thursday',
5: 'Friday',
6: 'Saturday'
};
return weekMap[weekday] ?? 'weekday';
}