setYears method
Implementation
List<Year> setYears(int fromYear, int toYear) {
final years = <Year>[];
var id = 0;
for (var i = fromYear; i < toYear; ++i) {
id = id++;
years.add(Year(id, i, setMonths(i), false, isCurrentYear(i)));
}
return years;
}