isMacOS top-level property
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;