units property

  1. @override
Map<DurationInterval, UnitString> get units

Implementation

@override
Map<DurationInterval, UnitString> get units => {
      DurationInterval.lessThanASecond: UnitString.withForm(
        "a few seconds",
        "a few sec",
        "a sec",
      ),
      DurationInterval.aSecond: UnitString.withForm(
        "a second",
        "1 sec",
        "1s",
      ),
      DurationInterval.seconds: UnitString.withForm(
        "$srDelta seconds",
        "$srDelta sec",
        "${srDelta}s",
      ),
      DurationInterval.aMinute: UnitString.withForm(
        "a minute",
        "1 min",
        "1m",
      ),
      DurationInterval.minutes: UnitString.withForm(
        "$srDelta minutes",
        "$srDelta min",
        "${srDelta}m",
      ),
      DurationInterval.anHour: UnitString.withForm(
        "an hour",
        "1 hr",
        "1h",
      ),
      DurationInterval.hours: UnitString.withForm(
        "$srDelta hours",
        "$srDelta hr",
        "${srDelta}h",
      ),
      DurationInterval.aDay: UnitString.withForm(
        "a day",
        "1 day",
        "1d",
      ),
      DurationInterval.days: UnitString.withForm(
        "$srDelta days",
        "$srDelta day",
        "${srDelta}d",
      ),
      DurationInterval.aWeek: UnitString.withForm(
        "a week",
        "1 wk",
        "1w",
      ),
      DurationInterval.weeks: UnitString.withForm(
        "$srDelta weeks",
        "$srDelta wk",
        "${srDelta}w",
      ),
      DurationInterval.aMonth: UnitString.withForm(
        "a month",
        "1 mo",
        "1mo",
      ),
      DurationInterval.months: UnitString.withForm(
        "$srDelta months",
        "$srDelta mo",
        "${srDelta}mo",
      ),
      DurationInterval.aYear: UnitString.withForm(
        "a year",
        "1 yr",
        "1y",
      ),
      DurationInterval.years: UnitString.withForm(
        "$srDelta years",
        "$srDelta yr",
        "${srDelta}y",
      ),
    };