CupertinoDatePicker constructor
const
CupertinoDatePicker({
- Key? key,
- required double itemExtent,
- required void onSelectedItemChanged(),
- TextStyle? selectedStyle,
- TextStyle? unselectedStyle,
- TextStyle? disabledStyle,
- DateTime? minDate,
- DateTime? maxDate,
- DateTime? selectedDate,
- Color? backgroundColor,
- double squeeze = 1.45,
- double diameterRatio = 1.1,
- double magnification = 1.0,
- double offAxisFraction = 0.0,
- bool useMagnifier = false,
- 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);