isSameYear method

bool isSameYear(
  1. Time other
)

Checks if this Time instance is in the same calendar year as other.

Implementation

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