SimpleDatePicker constructor
const
SimpleDatePicker({
- Key? key,
- DateTime? initialDate,
- DateTime? lastDate,
- DateTime? currentMonth,
- PickerType pickerType = PickerType.jalali,
- required dynamic onDateSelected(),
- dynamic onDateCleared()?,
- TextStyle? selectedItemStyle,
- TextStyle? itemStyle,
- Color? selectedItemBackgroundColor,
- Color? selectedItemBorderColor,
- Widget? selectDateButtonText,
- ButtonStyle? selectDateButtonStyle,
- Widget? clearDateButton,
- 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,
});