intersects method

bool intersects(
  1. LocalDateRange other
)

Implementation

bool intersects(LocalDateRange other) =>
    start == other.start ||
    start == other.end ||
    end == other.start ||
    end == other.end ||
    start > other.start && start < other.end ||
    end > other.start && end < other.end ||
    start < other.start && end > other.end;