discontinuedPackage os_detect has been discontinued and replaced by platform.

isMacOS property

bool get isMacOS

Whether the operating system is a version of macOS.

Identified by id being the string macos.

Implementation

bool get isMacOS => _osId is MacOS;