isDesktop top-level property

bool get isDesktop

Checks if the platform is a desktop (macOS, Windows, or Linux).

Implementation

bool get isDesktop => isMacOS || isWindows || isLinux;