range property

Implementation

DatepickerComparison? get range => selection.value;
  1. @Input()
set range (DatepickerComparison? cmp)

The selected date range and comparison.

This datepicker uses DatepickerComparison instead of plain DateRangeComparison objects -- this internal implementation adds extra needed features like names and next/prev support.

Implementation

@Input()
set range(DatepickerComparison? cmp) {
  selection.value = _maybeStripComparison(cmp);
}