isNativeDesktop top-level property
bool
get
isNativeDesktop
Returns true if the app is running on a native desktop platform
(macOS, Windows, or Linux).
Implementation
bool get isNativeDesktop =>
platformType == PxPlatformType.macos ||
platformType == PxPlatformType.windows ||
platformType == PxPlatformType.linux;