isDesktop property

bool get isDesktop

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

Implementation

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