containsPoint method

bool containsPoint(
  1. Pair p
)

Returns true if point is within the bounds (inclusive) of this interval.

Implementation

bool containsPoint(Pair p) =>
    Comparable.compare(start, p) <= 0 && Comparable.compare(end, p) >= 0;