isSameMonth method

bool isSameMonth(
  1. DateTime other
)

Checks if the current date is in the same month as other

Implementation

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