PersianDateRangePickerDialog constructor

const PersianDateRangePickerDialog({
  1. Key? key,
  2. JalaliRange? initialDateRange,
  3. required Jalali firstDate,
  4. required Jalali lastDate,
  5. Jalali? currentDate,
  6. PersianDatePickerEntryMode initialEntryMode = PersianDatePickerEntryMode.calendar,
  7. String? helpText,
  8. String? cancelText,
  9. String? confirmText,
  10. String? saveText,
  11. String? errorInvalidRangeText,
  12. String? errorFormatText,
  13. String? errorInvalidText,
  14. String? fieldStartHintText,
  15. String? fieldEndHintText,
  16. String? fieldStartLabelText,
  17. String? fieldEndLabelText,
  18. TextInputType keyboardType = TextInputType.datetime,
  19. String? restorationId,
  20. Icon? switchToInputEntryModeIcon,
  21. Icon? switchToCalendarEntryModeIcon,
})

A Material-style date range picker dialog.

Implementation

const PersianDateRangePickerDialog({
  super.key,
  this.initialDateRange,
  required this.firstDate,
  required this.lastDate,
  this.currentDate,
  this.initialEntryMode = PersianDatePickerEntryMode.calendar,
  this.helpText,
  this.cancelText,
  this.confirmText,
  this.saveText,
  this.errorInvalidRangeText,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldStartHintText,
  this.fieldEndHintText,
  this.fieldStartLabelText,
  this.fieldEndLabelText,
  this.keyboardType = TextInputType.datetime,
  this.restorationId,
  this.switchToInputEntryModeIcon,
  this.switchToCalendarEntryModeIcon,
});