timeOfDayFormat method Null safety
- {bool alwaysUse24HourFormat = false}
override
The TimeOfDayFormat corresponding to one of the following supported patterns:
HH:mmHH.mmHH 'h' mmHH:mm น.H:mmh:mm aa h:mmah:mm
See also:
- demo.icu-project.org/icu-bin/locexp?d_=en&_=en_US, which shows
the short time pattern used in the
en_USlocale.
Implementation
@override
TimeOfDayFormat timeOfDayFormat({ bool alwaysUse24HourFormat = false }) {
assert(alwaysUse24HourFormat != null);
if (alwaysUse24HourFormat) {
return _get24HourVersionOf(timeOfDayFormatRaw);
}
return timeOfDayFormatRaw;
}