DatePicker.year constructor

const DatePicker.year({
  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. String format = 'YYYY',
  28. Widget extraFooterBuilder(
    1. DatePickerMode mode
    )?,
  29. DateTime? value,
  30. void onChange(
    1. DateTime date,
    2. String dateString
    )?,
})

Implementation

const DatePicker.year({
  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.format = 'YYYY',
  this.extraFooterBuilder,
  this.value,
  this.onChange,
})  : disabledTime = null,
      showNow = null,
      showTime = null,
      showToday = false,
      onOk = null,
      monthCellBuilder = null,
      super(key: key);