DateTimePicker constructor

DateTimePicker({
  1. Key? key,
  2. DateTimePickerUnit unit = const DateTimePickerUnit.all(),
  3. bool showUnit = true,
  4. bool dual = true,
  5. TextStyle? unitStyle,
  6. TextStyle? contentStyle,
  7. DateTime? startDate,
  8. DateTime? defaultDate,
  9. DateTime? endDate,
  10. DateTimePickerChanged? onChanged,
  11. double height = kPickerDefaultHeight,
  12. double width = double.infinity,
  13. PickerOptions<DateTime>? options = const PickerOptions<DateTime>(),
  14. 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);