getYears method

  1. @override
List<int> getYears()
override

Implementation

@override
List<int> getYears() {
  int year = _getSelectedDate().year;
  List<int> years = [];
  for (var i = -100; i <= 50; i++) years.add(year + i);
  return years;
}