formatFullDate method

  1. @override
String formatFullDate (DateTime date)
override

Formats day of week, month, day of month and year in a long-width format.

Does not abbreviate names. Appears in spoken announcements of the date picker invoked using showDatePicker, when accessibility mode is on.

Examples:

  • US English: Wednesday, September 27, 2017
  • Russian: Среда, Сентябрь 27, 2017

Implementation

@override
String formatFullDate(DateTime date) {
  final String month = _months[date.month - DateTime.january];
  return '${_weekdays[date.weekday - DateTime.monday]}, $month ${date.day}, ${date.year}';
}