isDesktop property

bool get isDesktop

Implementation

static bool get isDesktop =>
    !kIsWeb &&
    [
      TargetPlatform.windows,
      TargetPlatform.linux,
      TargetPlatform.macOS,
    ].contains(defaultTargetPlatform);