isWindows top-level property

bool isWindows

Whether the test is running on the Windows operating system.

This does not include tests compiled to JavaScript running in a browser on the Windows operating system.

See also:

  • isBrowser, which reports true for tests running in browsers.

Implementation

bool get isWindows {
  if (isBrowser) {
    return false;
  }
  return Platform.isWindows;
}