updateRelativeTime method

UpdatedLocale updateRelativeTime({
  1. String? future,
  2. String? past,
  3. String? s,
  4. String? m,
  5. String? mm,
  6. String? h,
  7. String? hh,
  8. String? d,
  9. String? dd,
  10. String? w,
  11. String? ww,
  12. String? mo,
  13. String? mos,
  14. String? y,
  15. String? yy,
})

Creates a new locale with updated relative time.

Implementation

UpdatedLocale updateRelativeTime({
  String? future,
  String? past,
  String? s,
  String? m,
  String? mm,
  String? h,
  String? hh,
  String? d,
  String? dd,
  String? w,
  String? ww,
  String? mo,
  String? mos,
  String? y,
  String? yy,
}) =>
    UpdatedLocale(
      this,
      relativeTime: HoraRelativeTime(
        future: future ?? relativeTime.future,
        past: past ?? relativeTime.past,
        s: s ?? relativeTime.s,
        m: m ?? relativeTime.m,
        mm: mm ?? relativeTime.mm,
        h: h ?? relativeTime.h,
        hh: hh ?? relativeTime.hh,
        d: d ?? relativeTime.d,
        dd: dd ?? relativeTime.dd,
        w: w ?? relativeTime.w,
        ww: ww ?? relativeTime.ww,
        mo: mo ?? relativeTime.mo,
        mos: mos ?? relativeTime.mos,
        y: y ?? relativeTime.y,
        yy: yy ?? relativeTime.yy,
      ),
    );