minDate property

Date? get minDate

Implementation

Date? get minDate => _minDate;
  1. @Input()
set minDate (Date? newDate)

Dates earlier than minDate cannot be clicked on or scrolled to.

The calendar will display the entire year containing this date, but months 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, 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;
  _isResetNeeded = true;
}