DateTimePicker constructor
DateTimePicker({
- Key? key,
- DateTimePickerUnit unit = const DateTimePickerUnit.all(),
- bool showUnit = true,
- bool dual = true,
- TextStyle? unitStyle,
- TextStyle? contentStyle,
- DateTime? startDate,
- DateTime? defaultDate,
- DateTime? endDate,
- DateTimePickerChanged? onChanged,
- double height = kPickerDefaultHeight,
- double width = double.infinity,
- PickerOptions<
DateTime> ? options = const PickerOptions<DateTime>(), - PickerWheelOptions? wheelOptions,
Implementation
DateTimePicker({
super.key,
this.unit = const DateTimePickerUnit.all(),
this.showUnit = true,
this.dual = true,
this.unitStyle,
this.contentStyle,
this.startDate,
this.defaultDate,
this.endDate,
this.onChanged,
this.height = kPickerDefaultHeight,
this.width = double.infinity,
super.options = const PickerOptions<DateTime>(),
PickerWheelOptions? wheelOptions,
}) : super(wheelOptions: wheelOptions ?? GlobalOptions().pickerWheelOptions);