DatePickerProps constructor
const
DatePickerProps({
- DateTime? value,
- String? label,
- String? placeholder,
- DateTime? minDate,
- DateTime? maxDate,
- bool disabled = false,
- String? error,
- bool clearable = true,
- DatePickerSizeVariant size = DatePickerSizeVariant.md,
- CalendarModeVariant mode = CalendarModeVariant.single,
- DateRangeValue? rangeValue,
- bool isOpen = false,
- String displayText = 'Select date...',
- void onToggle()?,
- void onSelect(
- DateTime date
- void onRangeSelect(
- DateRangeValue range
- void onClear()?,
- 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,
});