englishDay function

String englishDay(
  1. dynamic day
)

String method englishDay takes the variable day and return String value DayName

Implementation

String englishDay(var day) {
  switch (day) {
    case 6:
      return "Saturday";
    case 0:
      return "Sunday";
    case 1:
      return "Monday";
    case 2:
      return "Tuesday";
    case 3:
      return "Wednesday";
    case 4:
      return "Thursday";
    case 5:
      return "Friday";
    default:
      return "";
  }
}