copyWith method

DateTimeFormatOptions copyWith({
  1. DateFormatStyle? dateFormatStyle,
  2. TimeFormatStyle? timeFormatStyle,
  3. Calendar? calendar,
  4. DayPeriod? dayPeriod,
  5. NumberingSystem? numberingSystem,
  6. String? timeZone,
  7. ClockStyle? clockstyle,
  8. WeekDayStyle? weekday,
  9. EraStyle? era,
  10. TimeStyle? year,
  11. MonthStyle? month,
  12. TimeStyle? day,
  13. TimeStyle? hour,
  14. TimeStyle? minute,
  15. TimeStyle? second,
  16. int? fractionalSecondDigits,
  17. TimeZoneName? timeZoneName,
  18. FormatMatcher? formatMatcher,
  19. LocaleMatcher? localeMatcher,
})

Implementation

DateTimeFormatOptions copyWith({
  DateFormatStyle? dateFormatStyle,
  TimeFormatStyle? timeFormatStyle,
  Calendar? calendar,
  DayPeriod? dayPeriod,
  NumberingSystem? numberingSystem,
  String? timeZone,
  ClockStyle? clockstyle,
  WeekDayStyle? weekday,
  EraStyle? era,
  TimeStyle? year,
  MonthStyle? month,
  TimeStyle? day,
  TimeStyle? hour,
  TimeStyle? minute,
  TimeStyle? second,
  int? fractionalSecondDigits,
  TimeZoneName? timeZoneName,
  FormatMatcher? formatMatcher,
  LocaleMatcher? localeMatcher,
}) {
  return DateTimeFormatOptions(
    dateFormatStyle: dateFormatStyle ?? this.dateFormatStyle,
    timeFormatStyle: timeFormatStyle ?? this.timeFormatStyle,
    calendar: calendar ?? this.calendar,
    dayPeriod: dayPeriod ?? this.dayPeriod,
    numberingSystem: numberingSystem ?? this.numberingSystem,
    timeZone: timeZone ?? this.timeZone,
    clockstyle: clockstyle ?? this.clockstyle,
    weekday: weekday ?? this.weekday,
    era: era ?? this.era,
    year: year ?? this.year,
    month: month ?? this.month,
    day: day ?? this.day,
    hour: hour ?? this.hour,
    minute: minute ?? this.minute,
    second: second ?? this.second,
    fractionalSecondDigits:
        fractionalSecondDigits ?? this.fractionalSecondDigits,
    timeZoneName: timeZoneName ?? this.timeZoneName,
    formatMatcher: formatMatcher ?? this.formatMatcher,
    localeMatcher: localeMatcher ?? this.localeMatcher,
  );
}