copyWith method
Implementation
MonthAndYear copyWith({
int? month,
int? year,
}) {
return MonthAndYear(
month: month ?? this.month,
year: year ?? this.year,
);
}
MonthAndYear copyWith({
int? month,
int? year,
}) {
return MonthAndYear(
month: month ?? this.month,
year: year ?? this.year,
);
}