updateYears method

dynamic updateYears()

Implementation

updateYears() {
  if (selectedDates.isEmpty) return;
  for (var year in years.values) {
    if (selectedDates.first.year <= year.year &&
        year.year <= selectedDates.last.year) {
      year.updateSelectState(selectedDates);
    }
  }
}