is <code>true</code> closes <code>this</code>.</p>
<p>Contrary to <code>add</code> the given <code>chunk</code> must not be held onto. Once the method
returns, it is safe to overwrite the data in it.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">void addSlice(List&lt;int&gt; chunk, int start, int end, bool isLast) {
  add(chunk.sublist(start, end));
  if (isLast) close();
}