he
<a href="dart-io/Platform/operatingSystem.html">operatingSystem</a> getter. You can also use one of the static boolean
getters: <a href="dart-io/Platform/isMacOS.html">isMacOS</a>, <a href="dart-io/Platform/isLinux.html">isLinux</a>, and <a href="dart-io/Platform/isWindows.html">isWindows</a>.</p>
<pre class="language-dart"><code>import 'dart:io' show Platform, stdout;

void main() {
  // Get the operating system as a string.
  String os = Platform.operatingSystem;
  // Or, use a predicate getter.
  if (