isSameMonth method

bool isSameMonth(
  1. DateTime other
)

Returns true if this date is in the same month as the other date.

Implementation

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