getWeekString function
Implementation
String getWeekString(Week? weekday) {
switch (weekday) {
case Week.MONDAY:
return 'Monday';
case Week.TUESDAY:
return 'Tuesday';
case Week.WEDNESDAY:
return 'Wednesday';
case Week.THURSDAY:
return 'Thursday';
case Week.FRIDAY:
return 'Friday';
case Week.SATURDAY:
return 'Saturday';
case Week.SUNDAY:
return 'Sunday';
default:
return 'Sunday';
}
}