>
<p>Setting a negative <code>rawIndex</code>, or one greater than <code>string.length</code>,
is an error. So is setting it in the middle of a surrogate pair.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">void reset([int rawIndex = 0]) {
  RangeError.checkValueInInterval(rawIndex, 0, string.length, &quot;rawIndex&quot;);
  _checkSplitSurrogate(rawIndex);
  _position = _nex