le</a>.</p>
<p>The elements are in iteration order.
The list is fixed-length if <code>growable</code> is false.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">List&lt;E&gt; toList({bool growable = true}) {
  List&lt;E&gt; list;
  if (growable) {
    list = &lt;E&gt;[]..length = length;
  } else {
    list = List&lt;E&gt;(length);
  }
  _writeToList(list);
  return list;
}</c