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