timeUnitLabels property

Map<String, String> get timeUnitLabels

Map of default unit abbreviations used by the timer when showTimeUnits is enabled and the caller did not override AdvancedCountdownTimer.timeUnitLabels.

Implementation

Map<String, String> get timeUnitLabels {
  switch (locale.languageCode) {
    case 'es':
      return const {'h': 'h', 'm': 'm', 's': 's'};
    case 'fr':
      return const {'h': 'h', 'm': 'm', 's': 's'};
    case 'en':
    default:
      return const {'h': 'h', 'm': 'm', 's': 's'};
  }
}