SimpleDatePicker constructor

const SimpleDatePicker({
  1. Key? key,
  2. DateTime? initialDate,
  3. DateTime? lastDate,
  4. DateTime? currentMonth,
  5. PickerType pickerType = PickerType.jalali,
  6. required dynamic onDateSelected(
    1. DateTime?
    ),
  7. dynamic onDateCleared(
    1. DateTime?
    )?,
  8. TextStyle? selectedItemStyle,
  9. TextStyle? itemStyle,
  10. Color? selectedItemBackgroundColor,
  11. Color? selectedItemBorderColor,
  12. Widget? selectDateButtonText,
  13. ButtonStyle? selectDateButtonStyle,
  14. Widget? clearDateButton,
  15. double? itemHeight = 200,
})

Implementation

const SimpleDatePicker({
  super.key,
  this.initialDate,
  this.lastDate,
  this.currentMonth,
  this.pickerType = PickerType.jalali,
  required this.onDateSelected,
  this.onDateCleared,
  // Customization related
  this.selectedItemStyle,
  this.itemStyle,
  this.selectedItemBackgroundColor,
  this.selectedItemBorderColor,
  this.selectDateButtonText,
  this.selectDateButtonStyle,
  this.clearDateButton,
  this.itemHeight = 200,
});