updateFormats method

UpdatedLocale updateFormats({
  1. String? lt,
  2. String? lts,
  3. String? l,
  4. String? ll,
  5. String? lll,
  6. String? llll,
})

Creates a new locale with updated formats.

Implementation

UpdatedLocale updateFormats({
  String? lt,
  String? lts,
  String? l,
  String? ll,
  String? lll,
  String? llll,
}) =>
    UpdatedLocale(
      this,
      formats: HoraFormats(
        lt: lt ?? formats.lt,
        lts: lts ?? formats.lts,
        l: l ?? formats.l,
        ll: ll ?? formats.ll,
        lll: lll ?? formats.lll,
        llll: llll ?? formats.llll,
      ),
    );