String hourOfPeriodLabel

A string representing the hour of the current period (e.g., '4' or '6').

Source

String get hourOfPeriodLabel {
  // TODO(ianh): Localize.
  final int hourOfPeriod = this.hourOfPeriod;
  if (hourOfPeriod == 0)
    return '12';
  return hourOfPeriod.toString();
}