getYears method
Implementation
List<int> getYears() {
List<int> years = [];
if (data['COUNT'] != null) {
for (var i = 0; i < int.parse(data['COUNT'].toString()); ++i) {
years.add(DateTime(DateTime.now().year + i).year);
}
}
return years.isEmpty ? [DateTime.now().year] : years;
}