s="default-value">0</span></span> ])
      
    </section>
    <section class="desc markdown">
      <p>Returns true if this string starts with a match of <code>pattern</code>.</p>
<pre class="language-dart"><code>var string = 'Dart';
string.startsWith('D');                       // true
string.startsWith(new RegExp(r'[A-Z][a-z]')); // true
</code></pre>
<p>If <code>index</code> is provided, this method checks if the substring starting
at that index starts with a match of <code>pattern</code>:</p>
<pre clas