minDate property
Date?
get
minDate
Implementation
Date? get minDate => _minDate;
Dates earlier than minDate
cannot be clicked on or scrolled to.
The calendar will display the entire month containing this date, but days
before minDate
will be disabled (greyed out). Note that disabled dates
can still be selected programmatically, e.g. if the parent component
specifies presets which extend past minDate/maxDate. Defaults to January
1, ten years ago. Set this to the earliest date which makes sense in your
domain context. e.g. The earliest date for which data is available for
analysis.
Implementation
@Input()
set minDate(Date? newDate) {
if (newDate == _minDate) return;
_minDate = newDate;
_minMonth = _Month.fromDate(_minDate!);
_isResetNeeded = true;
}