isDesktop property

bool isDesktop

Checks whether desktop or not

Implementation

static bool get isDesktop =>
    defaultTargetPlatform == TargetPlatform.linux ||
    defaultTargetPlatform == TargetPlatform.macOS ||
    defaultTargetPlatform == TargetPlatform.windows;