gth, just assign the length
right after creation:</p>
<pre class="language-dart"><code>List growableList = new List()..length = 500;
</code></pre>
<p>The <code>length</code> must not be negative or null, if it is provided.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span> </h2>
      <pre class="language-dart"><code class="language-dart">external factory List([int length]);</code></pre>
    </section>

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

  <div