turns a <code>Future&lt;File&gt;</code> that completes
with a <a href="dart-io/File-class.html">File</a> instance for the renamed file.</p>
<p>If <code>newPath</code> identifies an existing file, that file is
replaced. If <code>newPath</code> identifies an existing directory, the
operation fails and the future completes with an exception.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="lang