getLatinDay method
Implementation
String getLatinDay(DateTime date, {isShort = false}) {
switch (date.weekday) {
case 1:
return isShort ? "Mon" : "Monday";
case 2:
return isShort ? "Tue" : "Tuesday";
case 3:
return isShort ? "Wed" : "Wednesday";
case 4:
return isShort ? "Thu" : "Thursday";
case 5:
return isShort ? "Fri" : "Friday";
case 6:
return isShort ? "Sat" : "Saturday";
case 7:
return isShort ? "Sun" : "Sunday";
default:
return "invalid weekday";
}
}