YearPicker constructor

const YearPicker({
  1. required CalendarDatePicker2Config config,
  2. required List<DateTime?> selectedDates,
  3. required ValueChanged<DateTime> onChanged,
  4. required DateTime initialMonth,
  5. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  6. Key? key,
})

Creates a year picker.

Implementation

const YearPicker({
  required this.config,
  required this.selectedDates,
  required this.onChanged,
  required this.initialMonth,
  this.dragStartBehavior = DragStartBehavior.start,
  Key? key,
}) : super(key: key);