copyWith method

MonthAndYear copyWith({
  1. int? month,
  2. int? year,
})

Implementation

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