it check if other offset is in this scheme
other
bool containsOffset(int other) => startAt <= other && endAt > other;