range property

DateRange get range

Implementation

DateRange get range => _range;
  1. @Input()
set range (DateRange? range)

The selected date range.

Implementation

@Input()
set range(DateRange? range) {
  if (range != null) {
    if (range != _range && range.start != null && range.end != null) {
      // Publish changes, if both endpoints are set
      _controller.add(range);
    }
    _range = range;
    //_range = range ?? DateRange(null, null);
  }
}