ModWheelDatePicker.yearOnly constructor
const
ModWheelDatePicker.yearOnly({
- Key? key,
- DateTime? initialDate,
- ModWheelDatePickerController? controller,
- ValueChanged<
DateTime> ? onDateChanged, - int minYear = 1900,
- int maxYear = 2100,
- double height = 150,
- double? width,
- TextStyle? selectedStyle,
- TextStyle? unselectedStyle,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- bool enableHapticFeedback = true,
- ModHapticFeedbackType hapticFeedbackType = ModHapticFeedbackType.vibrate,
- double itemSize = 40,
- bool enableAnimation = true,
- Duration animationDuration = const Duration(milliseconds: 500),
Creates a date picker with year wheel only.
Implementation
const ModWheelDatePicker.yearOnly({
super.key,
this.initialDate,
this.controller,
this.onDateChanged,
this.minYear = 1900,
this.maxYear = 2100,
this.height = 150,
this.width,
this.selectedStyle,
this.unselectedStyle,
this.backgroundColor,
this.borderRadius,
this.enableHapticFeedback = true,
this.hapticFeedbackType = ModHapticFeedbackType.vibrate,
this.itemSize = 40,
this.enableAnimation = true,
this.animationDuration = const Duration(milliseconds: 500),
}) : type = ModWheelDatePickerType.yearOnly,
showDividers = false,
dividerColor = null,
useShortMonthNames = false,
customMonthNames = null,
dayMonthYearOrder = true;