isDesktopPlatform top-level property
bool
get
isDesktopPlatform
Implementation
bool get isDesktopPlatform => switch (defaultTargetPlatform) {
TargetPlatform.macOS ||
TargetPlatform.linux ||
TargetPlatform.windows => true,
TargetPlatform.android ||
TargetPlatform.iOS ||
TargetPlatform.fuchsia => false,
};