isMacOS top-level property Null safety

bool isMacOS

Whether the current operating system is a version of macOS.

Identified by operatingSystem being the string macos.

Implementation

bool get isMacOS => OperatingSystem.current.isMacOS;