PDayPicker constructor

PDayPicker({
  1. Key? key,
  2. required Jalali selectedDate,
  3. required Jalali currentDate,
  4. required ValueChanged<Jalali> onChanged,
  5. required Jalali firstDate,
  6. required Jalali lastDate,
  7. required Jalali displayedMonth,
  8. PSelectableDayPredicate? selectableDayPredicate,
  9. 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);