"type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">flush</span>: <span class="default-value">false</span></span> })
      
    </section>
    <section class="desc markdown">
      <p>Write a string to a file.</p>
<p>Opens the file, writes the string in the given encoding, and closes the
file. Returns a <code>Future&lt;File&gt;</code> that completes with this <a href="dart-io/File-class.html">File</a> object
once the entire operation has completed.</p>
<p>By de