includes method

bool includes(
  1. DateRange range
)

Returns true if the whole range is in current range.

Implementation

bool includes(DateRange range) =>
    range.start.compareTo(start) >= 0 && range.end.compareTo(end) <= 0;