PDayPicker constructor
PDayPicker({
- Key? key,
- required Jalali selectedDate,
- required Jalali currentDate,
- required ValueChanged<
Jalali> onChanged, - required Jalali firstDate,
- required Jalali lastDate,
- required Jalali displayedMonth,
- PSelectableDayPredicate? selectableDayPredicate,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
Creates a day picker.
Rarely used directly. Instead, typically used as part of a MonthPicker
.
Implementation
PDayPicker({
Key? key,
required this.selectedDate,
required this.currentDate,
required this.onChanged,
required this.firstDate,
required this.lastDate,
required this.displayedMonth,
this.selectableDayPredicate,
this.dragStartBehavior = DragStartBehavior.start,
}) : assert(!firstDate.isAfter(lastDate)),
assert(selectedDate.isAfter(firstDate) ||
selectedDate.isAtSameMomentAs(firstDate)),
super(key: key);