isSameMonth method

bool isSameMonth(
  1. DateTime other
)

Returns true if the date is in the same month as other, false otherwise.

Implementation

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