toStringEN method

String toStringEN (Weekday input)

Converts a Weekday to the corresponding English string.

Implementation

static String toStringEN(Weekday input) {
  String name;

  switch (input) {
    case Weekday.Monday:
      name = 'Monday';
      break;

    case Weekday.Tuesday:
      name = 'Tuesday';
      break;

    case Weekday.Wednesday:
      name = 'Wednesday';
      break;

    case Weekday.Thursday:
      name = 'Thursday';
      break;

    case Weekday.Friday:
      name = 'Friday';
      break;
  }

  return name;
}