ModWheelDatePicker constructor
const
ModWheelDatePicker({
- Key? key,
- ModWheelDatePickerType type = ModWheelDatePickerType.dayMonthYear,
- DateTime? initialDate,
- ModWheelDatePickerController? controller,
- ValueChanged<
DateTime> ? onDateChanged, - int minYear = 1900,
- int maxYear = 2100,
- double height = 150,
- double? width,
- TextStyle? selectedStyle,
- TextStyle? unselectedStyle,
- bool showDividers = false,
- Color? dividerColor,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- bool enableHapticFeedback = true,
- ModHapticFeedbackType hapticFeedbackType = ModHapticFeedbackType.vibrate,
- bool useShortMonthNames = false,
- List<
String> ? customMonthNames, - double itemSize = 40,
- bool enableAnimation = true,
- Duration animationDuration = const Duration(milliseconds: 500),
- 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,
});