yearsCount property

int get yearsCount

Implementation

int get yearsCount => (maxDate.year - minDate.year) + 1;