minDate property

Date get minDate

Implementation

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

Dates earlier than minDate cannot be chosen.

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. Changes to minDate are only applied to the selected `range' when the user reopens the popup.

Implementation

@Input()
set minDate(Date? date) {
  _minDate = date ?? Date.today();
  model.minDate = _minDate;
}