containsLine method
Checks if a line is contained within this fold range.
Returns true if line is strictly greater than startIndex and
less than or equal to endIndex.
Implementation
bool containsLine(int line) {
return line > startIndex && line <= endIndex;
}