HorizontalDatePicker constructor
const
HorizontalDatePicker({
- Key? key,
- required ValueChanged<
DateTime> onDateSelected, - DateTime? initialDate,
- DateTime? startDate,
- DateTime? endDate,
- double itemWidth = 62.0,
- double height = 92.0,
- Color? selectedColor,
- Gradient? selectedGradient,
- String? locale,
- Set<
DateTime> markedDates = const <DateTime>{}, - Set<
DateTime> disabledDates = const <DateTime>{}, - bool showHeader = true,
Implementation
const HorizontalDatePicker({
super.key,
required this.onDateSelected,
this.initialDate,
this.startDate,
this.endDate,
this.itemWidth = 62.0,
this.height = 92.0,
this.selectedColor,
this.selectedGradient,
this.locale,
this.markedDates = const <DateTime>{},
this.disabledDates = const <DateTime>{},
this.showHeader = true,
});