YearPicker constructor

const YearPicker({
  1. required DateTime firstDate,
  2. required DateTime lastDate,
  3. required DateTime initialDate,
  4. required DateTime selectedDate,
  5. required ValueChanged<DateTime> onYearSelected,
  6. required ValueChanged<DateTime> onPageChanged,
  7. SelectableMonthYearPredicate? selectableMonthYearPredicate,
  8. Key? key,
})

Implementation

const YearPicker({
  required this.firstDate,
  required this.lastDate,
  required this.initialDate,
  required this.selectedDate,
  required this.onYearSelected,
  required this.onPageChanged,
  this.selectableMonthYearPredicate,
  Key? key,
}) : super(key: key);