equals method

bool equals(
  1. MonthAndYear input
)

Implementation

bool equals(MonthAndYear input) => month == input.month && year == input.year;