INNER CODE UNIT · Dart
Function
jama5262/jiffy · lib/src/default_display.dart:7
DateFormat _format(String key, DateFormat Function() build) {
final currentLocale = Intl.getCurrentLocale();
if (currentLocale != _cachedLocale) {
_formatters.clear();
_cachedLocale = currentLocale;
}
return _formatters[key] ??= build();
}
String E(DateTime dateTime) =>
_format('E', () => DateFormat.E()).format(dateTime);
// ignore: non_constant_identifier_names
String EEEE(DateTime dateTime) =>
_format('EEEE', () => DateFormat.EEEE()).format(dateTime);
// ignore: non_constant_identifier_names
String Md(DateTime dateTime) =>