DatePickerProps constructor

const DatePickerProps({
  1. String? id,
  2. DateTime? value,
  3. String? label,
  4. String? placeholder,
  5. DateTime? minDate,
  6. DateTime? maxDate,
  7. bool disabled = false,
  8. String? error,
  9. bool clearable = true,
  10. DatePickerSizeVariant size = DatePickerSizeVariant.md,
  11. CalendarModeVariant mode = CalendarModeVariant.single,
  12. DateRangeValue? rangeValue,
  13. bool isOpen = false,
  14. String displayText = 'Select date...',
  15. void onToggle()?,
  16. void onSelect(
    1. DateTime date
    )?,
  17. void onRangeSelect(
    1. DateRangeValue range
    )?,
  18. void onClear()?,
  19. CalendarProps? calendarProps,
  20. ArcaneStyleData? styles,
  21. ArcaneDecoration? decoration,
})

Implementation

const DatePickerProps({
  this.id,
  this.value,
  this.label,
  this.placeholder,
  this.minDate,
  this.maxDate,
  this.disabled = false,
  this.error,
  this.clearable = true,
  this.size = DatePickerSizeVariant.md,
  this.mode = CalendarModeVariant.single,
  this.rangeValue,
  this.isOpen = false,
  this.displayText = 'Select date...',
  this.onToggle,
  this.onSelect,
  this.onRangeSelect,
  this.onClear,
  this.calendarProps,
  this.styles,
  this.decoration,
});