isValid property

bool isValid

Whether this range represents a valid position in the text.

Implementation

bool get isValid => start >= 0 && end >= 0;