timeOfDayFormat method

  1. @override
TimeOfDayFormat timeOfDayFormat({
  1. bool alwaysUse24HourFormat = false,
})
override

The TimeOfDayFormat corresponding to one of the following supported patterns:

  • HH:mm
  • HH.mm
  • HH 'h' mm
  • HH:mm น.
  • H:mm
  • h:mm a
  • a h:mm
  • ah:mm

See also:

Implementation

@override
TimeOfDayFormat timeOfDayFormat({ bool alwaysUse24HourFormat = false }) {
  if (alwaysUse24HourFormat) {
    return _get24HourVersionOf(timeOfDayFormatRaw);
  }
  return timeOfDayFormatRaw;
}