copyWith method

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

Implementation

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