Platform.isMacOS) {
    print('is a Mac');
  } else {
    print('is not a Mac');
  }
}
</code></pre>
<h2>Other resources</h2>
<p><a href="https://www.dartlang.org/dart-by-example/#dart-io-and-command-line-apps">Dart by Example</a>
provides additional task-oriented code samples that show how to use
various API from the <a href="dart-io/dart-io-library.html">dart:io</a> library.</p>
    </section>
    

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class=