pan class="parameter" id="getPositionForOffset-param-offset"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">offset</span></span>)
      
    </section>
    <section class="desc markdown">
      <p>Returns the text position closest to the given offset.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">TextPosition