ranges property
A list of predefined date ranges which the user can choose from. These are
subject to clamping by minDate
and maxDate
, and are excluded entirely
if their end point is before minDate
or their start point is after
maxDate
.
Implementation
@Deprecated('Use [presets] instead.')
@Input()
set ranges(List<DatepickerDateRange> ranges) {
presets = ranges.map((range) => DatepickerPreset.fromRange(range)).toList();
}