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