isSameMonth method

bool isSameMonth(
  1. DateTime other
)

Check if the DateTime is in the same month as the other.

Implementation

bool isSameMonth(DateTime other) {
  return year == other.year && month == other.month;
}