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;
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
 