isDesktop property
Indicates if the app is running on a desktop platform (not web).
Returns true if the current platform is macOS, Windows, or Linux,
and the app is not running on the web. Otherwise, it returns false.
Implementation
static bool get isDesktop =>
_desktopPlatforms.contains(defaultTargetPlatform) && !kIsWeb;