copyWith method

  1. @override
DateTimeFormattingTypeAbsolute copyWith({
  1. DateTimePartPrecision? timePrecision,
  2. DateTimePartPrecision? datePrecision,
  3. bool? showDayOfWeek,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
DateTimeFormattingTypeAbsolute copyWith({
  DateTimePartPrecision? timePrecision,
  DateTimePartPrecision? datePrecision,
  bool? showDayOfWeek,
}) => DateTimeFormattingTypeAbsolute(
  timePrecision: timePrecision ?? this.timePrecision,
  datePrecision: datePrecision ?? this.datePrecision,
  showDayOfWeek: showDayOfWeek ?? this.showDayOfWeek,
);