copyWith method
DateTimeFormatOptions
copyWith({
- Calendar? calendar,
- DayPeriod? dayPeriod,
- NumberingSystem? numberingSystem,
- ClockStyle? clockstyle,
- WeekDayStyle? weekday,
- EraStyle? era,
- TimeStyle? timestyle,
- int? fractionalSecondDigits,
- 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,
);
}