range method
Returns a mutable view onto a Vector range. Throws a RangeError, if the index is out of bounds.
Implementation
Vector<T> range(int start, [int? end]) {
end = RangeError.checkValidRange(start, end, count, 'start', 'end');
return rangeUnchecked(start, end);
}