DatePickerProps constructor

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

Implementation

const DatePickerProps({
  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,
});