macOS constant Null safety

String const macOS

A string constant to compare with operatingSystem to see if the platform is macOS.

Useful in case statements when switching on operatingSystem.

To just check if the platform is macOS, use isMacOS.

Implementation

static const String macOS = 'macos';