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