VerseRangeRef.checked constructor
Creates an ascending range.
Implementation
factory VerseRangeRef.checked({
required VerseRef start,
required VerseRef end,
}) {
if (start.compareTo(end) >= 0) {
throw ArgumentError.value(
end,
'end',
'must come after start',
);
}
return VerseRangeRef(start: start, end: end);
}