PMonthPicker constructor
PMonthPicker({
- Key? key,
- required Jalali selectedDate,
- required ValueChanged<
Jalali> onChanged, - required Jalali firstDate,
- required Jalali lastDate,
- PSelectableDayPredicate? selectableDayPredicate,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
Creates a month picker.
Rarely used directly. Instead, typically used as part of the dialog shown by showDatePicker.
Implementation
PMonthPicker({
Key? key,
required this.selectedDate,
required this.onChanged,
required this.firstDate,
required this.lastDate,
this.selectableDayPredicate,
this.dragStartBehavior = DragStartBehavior.start,
}) : assert(!firstDate.isAfter(lastDate)),
assert(selectedDate.isAfter(firstDate) ||
selectedDate.isAtSameMomentAs(firstDate)),
super(key: key);