ModWheelDatePicker constructor

const ModWheelDatePicker({
  1. Key? key,
  2. ModWheelDatePickerType type = ModWheelDatePickerType.dayMonthYear,
  3. DateTime? initialDate,
  4. ModWheelDatePickerController? controller,
  5. ValueChanged<DateTime>? onDateChanged,
  6. int minYear = 1900,
  7. int maxYear = 2100,
  8. double height = 150,
  9. double? width,
  10. TextStyle? selectedStyle,
  11. TextStyle? unselectedStyle,
  12. bool showDividers = false,
  13. Color? dividerColor,
  14. Color? backgroundColor,
  15. BorderRadius? borderRadius,
  16. bool enableHapticFeedback = true,
  17. ModHapticFeedbackType hapticFeedbackType = ModHapticFeedbackType.vibrate,
  18. bool useShortMonthNames = false,
  19. List<String>? customMonthNames,
  20. double itemSize = 40,
  21. bool enableAnimation = true,
  22. Duration animationDuration = const Duration(milliseconds: 500),
  23. bool dayMonthYearOrder = true,
})

Implementation

const ModWheelDatePicker({
  super.key,
  this.type = ModWheelDatePickerType.dayMonthYear,
  this.initialDate,
  this.controller,
  this.onDateChanged,
  this.minYear = 1900,
  this.maxYear = 2100,
  this.height = 150,
  this.width,
  this.selectedStyle,
  this.unselectedStyle,
  this.showDividers = false,
  this.dividerColor,
  this.backgroundColor,
  this.borderRadius,
  this.enableHapticFeedback = true,
  this.hapticFeedbackType = ModHapticFeedbackType.vibrate,
  this.useShortMonthNames = false,
  this.customMonthNames,
  this.itemSize = 40,
  this.enableAnimation = true,
  this.animationDuration = const Duration(milliseconds: 500),
  this.dayMonthYearOrder = true,
});