isMacOS top-level property

bool isMacOS

Whether the test is running on the macOS operating system.

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

Implementation

bool get isMacOS {
  if (_kIsCompiledToJavaScript) {
    return false;
  }
  return Platform.isMacOS;
}