isDesktop property

bool isDesktop

Implementation

static bool get isDesktop => kIsWeb
    ? false
    : (defaultTargetPlatform == TargetPlatform.macOS) ||
        (defaultTargetPlatform == TargetPlatform.windows) ||
        (defaultTargetPlatform == TargetPlatform.linux);