shortTitle method

String shortTitle([
  1. String? locale
])

Return the abbreviation of day - useful for calendar views.

Implementation

String shortTitle([String? locale]) {
  final dayOfWeek =
      Week.firstISOWeekOfEpoch.startOfWeek.addDays(number - 1).asDateTime;
  return DateFormat('E', locale).format(dayOfWeek);
}