copyWith method

DateTimeFormatOptions copyWith({
  1. Calendar? calendar,
  2. DayPeriod? dayPeriod,
  3. NumberingSystem? numberingSystem,
  4. ClockStyle? clockstyle,
  5. WeekDayStyle? weekday,
  6. EraStyle? era,
  7. TimeStyle? timestyle,
  8. int? fractionalSecondDigits,
  9. FormatMatcher? formatMatcher,
})

Implementation

DateTimeFormatOptions copyWith({
  Calendar? calendar,
  DayPeriod? dayPeriod,
  NumberingSystem? numberingSystem,
  ClockStyle? clockstyle,
  WeekDayStyle? weekday,
  EraStyle? era,
  TimeStyle? timestyle,
  int? fractionalSecondDigits,
  FormatMatcher? formatMatcher,
}) {
  return DateTimeFormatOptions(
    calendar: calendar ?? this.calendar,
    dayPeriod: dayPeriod ?? this.dayPeriod,
    numberingSystem: numberingSystem ?? this.numberingSystem,
    clockstyle: clockstyle ?? this.clockstyle,
    era: era ?? this.era,
    timestyle: timestyle ?? this.timestyle,
    fractionalSecondDigits:
        fractionalSecondDigits ?? this.fractionalSecondDigits,
    formatMatcher: formatMatcher ?? this.formatMatcher,
  );
}