prettyWeekdayString method

String prettyWeekdayString(
  1. DateTime date
)

Implementation

String prettyWeekdayString(DateTime date) {
  if (date.year == DateTime.now().year) {
    return "${weekdays.weekday(date)}, ${date.day}. ${months.monthShort(date)}";
  } else {
    return "${weekdays.weekday(date)}, ${date.day}. ${months.monthShort(date)} ${date.year}";
  }
}