containsRange method

bool containsRange(
  1. TimeRange timeRange
)

Returns true if this contains timeRange

Implementation

bool containsRange(TimeRange timeRange) =>
    timeRange.from >= from && timeRange.to <= to;