isSameYear method

bool isSameYear(
  1. DateTime b
)

Whether or not two dates are in the same year.

Implementation

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