copyWith method

Date copyWith({
  1. int? year,
  2. int? month,
  3. int? day,
})

Refer to DateTime for more information.

Implementation

Date copyWith({int? year, int? month, int? day}) =>
    Date(year ?? this.year, month ?? this.month, day ?? this.day);