isSameYear method

bool isSameYear(
  1. DateTime other
)

Implementation

bool isSameYear(DateTime other) => year == other.year;