getAbbreviatedWeekday method
Implementation
String getAbbreviatedWeekday(int weekday) {
switch (weekday) {
case DateTime.monday:
return abbreviatedMonday;
case DateTime.tuesday:
return abbreviatedTuesday;
case DateTime.wednesday:
return abbreviatedWednesday;
case DateTime.thursday:
return abbreviatedThursday;
case DateTime.friday:
return abbreviatedFriday;
case DateTime.saturday:
return abbreviatedSaturday;
case DateTime.sunday:
return abbreviatedSunday;
default:
throw ArgumentError.value(weekday, 'weekday');
}
}