isLinux top-level property

bool get isLinux

Whether the test is running on the Linux operating system.

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

See also:

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

Implementation

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