Whether this range represents a valid position in the text.
bool get isValid => start >= 0 && end >= 0;