>

    <section class="desc markdown">
      <p>Creates a text range.</p>
<p>The <code>start</code> and <code>end</code> arguments must not be null. Both the <code>start</code> and
<code>end</code> must either be greater than or equal to zero or both exactly -1.</p>
<p>The text included in the range includes the character at <code>start</code>, but not
the one at <code>end</code>.</p>
<p>Instead of creating an empty text range, consider using the <a href="../../dart-ui/TextRange/empty-constant.html">empty</