isMacOS top-level property Null safety
Whether the test is running on the macOS operating system.
This does not include tests compiled to JavaScript running in a browser on the macOS operating system.
See also:
- isBrowser, which reports true for tests running in browsers.
Implementation
bool get isMacOS {
if (isBrowser) {
return false;
}
return Platform.isMacOS;
}