sive, of the list.</p>
<pre class="language-dart"><code>List&lt;int&gt; list1 = [1, 2, 3, 4];
List&lt;int&gt; list2 = [5, 6, 7, 8, 9];
// Copies the 4th and 5th items in list2 as the 2nd and 3rd items
// of list1.
list1.setRange(1, 3, list2, 3);
list1.join(', '); // '1, 8, 9, 4'
</code></pre>
<p>The provided range, given by <code>start</code> and <code>end</code>, must be valid.
A range from <code>start</code> to <code>end</code> is valid if <code>0 &lt;= start &lt;= end &lt;= len</code>, where
<code>len</c