month function

String month()

returns a month of the year Return a random month of the year.

Returns: A random month from the months list.

Implementation

String month() {
  final months = [
    'January',
    'February',
    'March',
    'April',
    'May',
    'June',
    'July',
    'August',
    'September',
    'October',
    'November',
    'December',
  ];

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