isDesktop top-level property

bool get isDesktop

True if the current operating system is a desktop OS (Windows, Linux, or macOS).

Implementation

bool get isDesktop => (isWindows || isUnixLike);