DatePicker constructor

const DatePicker({
  1. Key? key,
  2. bool allowClear = true,
  3. bool autoFocus = false,
  4. bool bordered = true,
  5. Widget dateBuilder(
    1. DateTime currentDate,
    2. DateTime today
    )?,
  6. bool disabled = false,
  7. bool disabledDate(
    1. DateTime currentDate
    )?,
  8. Widget getPopupContainer()?,
  9. bool inputReadOnly = false,
  10. DatePickerMode? mode,
  11. Widget? nextIcon,
  12. bool? open,
  13. Widget panelBuilder()?,
  14. Picker picker = Picker.date,
  15. String? placeholder,
  16. Alignment placement = Alignment.bottomLeft,
  17. Widget? prevIcon,
  18. DatePickerSize size = DatePickerSize.middle,
  19. DatePickerStatus? status,
  20. Widget? suffixIcon,
  21. Widget? superNextIcon,
  22. Widget? superPrevIcon,
  23. void onOpenChange(
    1. bool open
    )?,
  24. void onPanelChange(
    1. DateTime value,
    2. DatePickerMode mode
    )?,
  25. DateTime? defaultPickerValue,
  26. DateTime? defaultValue,
  27. bool disabledTime(
    1. DateTime date
    )?,
  28. String format = 'YYYY-MM-DD',
  29. Widget extraFooterBuilder(
    1. DatePickerMode mode
    )?,
  30. bool? showNow,
  31. bool? showTime,
  32. bool showToday = true,
  33. DateTime? value,
  34. void onChange(
    1. DateTime date,
    2. String dateString
    )?,
  35. void onOk()?,
})

Implementation

const DatePicker({
  Key? key,
  this.allowClear = true,
  this.autoFocus = false,
  this.bordered = true,
  this.dateBuilder,
  this.disabled = false,
  this.disabledDate,
  this.getPopupContainer,
  this.inputReadOnly = false,
  this.mode,
  this.nextIcon,
  this.open,
  this.panelBuilder,
  this.picker = Picker.date,
  this.placeholder,
  this.placement = Alignment.bottomLeft,
  this.prevIcon,
  this.size = DatePickerSize.middle,
  this.status,
  this.suffixIcon,
  this.superNextIcon,
  this.superPrevIcon,
  this.onOpenChange,
  this.onPanelChange,
  this.defaultPickerValue,
  this.defaultValue,
  this.disabledTime,
  this.format = 'YYYY-MM-DD',
  this.extraFooterBuilder,
  this.showNow,
  this.showTime,
  this.showToday = true,
  this.value,
  this.onChange,
  this.onOk,
})  : monthCellBuilder = null,
      super(key: key);