toLongDate method

String toLongDate()

Format DateTime as Long Date: Month DD, YYYY

Implementation

String toLongDate() {
  final monthNames = [
    'January',
    'February',
    'March',
    'April',
    'May',
    'June',
    'July',
    'August',
    'September',
    'October',
    'November',
    'December'
  ];
  return '${monthNames[month - 1]} $day, $year';
}