isMacOS property

bool isMacOS
final

Whether the operating system is a version of macOS.

Implementation

@pragma("vm:platform-const")
static final bool isMacOS = (operatingSystem == "macos");