diffYear method

int diffYear(
  1. DateTime d
)

Implementation

int diffYear(DateTime d) {
  return (d.year - year).abs();
}