bool isMacOS
final

Whether the operating system is a version of macOS.

Source

static final bool isMacOS = (_operatingSystem == "macos")