isValid property

bool get isValid

Whether this selection has valid (non-negative) positions with end >= start.

Implementation

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