getWeekString function
converts a Week enum value to a weekday string
Implementation
// ignore: missing_return
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';
}
}