isDesktop property

bool get isDesktop

Returns true if the current platform is desktop (macOS, Windows, or Linux).

Implementation

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