CupertinoDatePicker constructor

const CupertinoDatePicker({
  1. Key? key,
  2. required double itemExtent,
  3. required void onSelectedItemChanged(
    1. DateTime
    ),
  4. TextStyle? selectedStyle,
  5. TextStyle? unselectedStyle,
  6. TextStyle? disabledStyle,
  7. DateTime? minDate,
  8. DateTime? maxDate,
  9. DateTime? selectedDate,
  10. Color? backgroundColor,
  11. double squeeze = 1.45,
  12. double diameterRatio = 1.1,
  13. double magnification = 1.0,
  14. double offAxisFraction = 0.0,
  15. bool useMagnifier = false,
  16. Widget selectionOverlay = const CupertinoPickerDefaultSelectionOverlay(),
})

Implementation

const CupertinoDatePicker({
  Key? key,
  required this.itemExtent,
  required this.onSelectedItemChanged,
  this.selectedStyle,
  this.unselectedStyle,
  this.disabledStyle,
  this.minDate,
  this.maxDate,
  this.selectedDate,
  this.backgroundColor,
  this.squeeze = 1.45,
  this.diameterRatio = 1.1,
  this.magnification = 1.0,
  this.offAxisFraction = 0.0,
  this.useMagnifier = false,
  this.selectionOverlay = const CupertinoPickerDefaultSelectionOverlay(),
}) : super(key: key);