dateEqYear top-level property

Eq<DateTime> dateEqYear
final

Eq instance to compare DateTime years.

Implementation

final Eq<DateTime> dateEqYear = Eq.instance<DateTime>(
  (a1, a2) => a1.year == a2.year,
);