isSameYearAs method

bool isSameYearAs(
  1. DateTime other
)

Checks if this DateTime is in the same year as other.

Implementation

bool isSameYearAs(DateTime other) => isAtSameYearAs(other);