contains method

bool contains(
  1. TimeRange other
)

Implementation

bool contains(TimeRange other) =>
    startTime <= other.startTime && other.endTime <= endTime;