readable static method
Formats date in a readable format
Example:
DateFormatters.readable(DateTime(2024, 1, 15)); // 'January 15, 2024'
Implementation
static String readable(DateTime date) {
const months = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December',
];
return '${months[date.month - 1]} ${date.day}, ${date.year}';
}