isSameMonthYear method

bool isSameMonthYear(
  1. DateTime other
)

Implementation

bool isSameMonthYear(DateTime other) => year == other.year && month == other.month;