weekday function

String weekday()

Return a random weekday.

Returns: A random weekday.

Implementation

String weekday() {
  final days = [
    'Sunday',
    'Monday',
    'Tuesday',
    'Wednesday',
    'Thursday',
    'Friday',
    'Saturday',
  ];

  return days[integer(max: days.length)];
}