isValid property

bool get isValid

Whether this range is valid

Implementation

bool get isValid => start <= end && count == (end - start + 1) && start > 0;