isSameYearAs method

bool isSameYearAs(
  1. DateTime other
)

Checks if this date is the same year as other

Implementation

bool isSameYearAs(DateTime other) {
  return DateComparisons.isSameYear(this, other);
}