HorizontalDatePicker constructor

const HorizontalDatePicker({
  1. Key? key,
  2. required ValueChanged<DateTime> onDateSelected,
  3. DateTime? initialDate,
  4. DateTime? startDate,
  5. DateTime? endDate,
  6. double itemWidth = 62.0,
  7. double height = 92.0,
  8. Color? selectedColor,
  9. Gradient? selectedGradient,
  10. String? locale,
  11. Set<DateTime> markedDates = const <DateTime>{},
  12. Set<DateTime> disabledDates = const <DateTime>{},
  13. 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,
});