lib: format

This commit is contained in:
2025-05-16 21:06:19 +02:00
parent 84ae7eca9e
commit 3f267b78d3
16 changed files with 360 additions and 96 deletions

View File

@@ -289,15 +289,16 @@ extension on DateTime {
}
String get japaneseWeekdayPrefix => [
'',
'',
'',
'',
'',
'',
'',
][weekday - 1];
'',
'',
'',
'',
'',
'',
'',
][weekday - 1];
/// Returns the date in Japanese format.
String japaneseDate({bool showWeekday = false}) => '$month月$day日' + (showWeekday ? '$japaneseWeekdayPrefix' : '');
String japaneseDate({bool showWeekday = false}) =>
'$month月$day日' + (showWeekday ? '$japaneseWeekdayPrefix' : '');
}