PYearPicker constructor
PYearPicker({
- Key? key,
- required Jalali selectedDate,
- required ValueChanged<
Jalali> onChanged, - required Jalali firstDate,
- required Jalali lastDate,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
Creates a year picker.
The selectedDate
and onChanged
arguments must not be null. The
lastDate
must be after the firstDate
.
Rarely used directly. Instead, typically used as part of the dialog shown by showDatePicker.
Implementation
PYearPicker({
Key? key,
required this.selectedDate,
required this.onChanged,
required this.firstDate,
required this.lastDate,
this.dragStartBehavior = DragStartBehavior.start,
}) : assert(!firstDate.isAfter(lastDate)),
super(key: key);