PrismUpdatePlatformInfo class

Information about the platform the app is running on, used to pick the right update flow per platform.

Web and desktop builds cannot rely on store flows, so the package exposes explicit platform info that screens and controllers branch on.

Constructors

PrismUpdatePlatformInfo({required bool isWeb, required bool isAndroid, required bool isIOS, required bool isWindows, required bool isMacOS, required bool isLinux})
Creates platform info.
const
PrismUpdatePlatformInfo.detect()
Detects the current platform from defaultTargetPlatform.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasStoreFlow → bool
Whether this platform can open a store page directly (Android/iOS).
no setter
isAndroid → bool
Whether the app runs on Android.
final
isIOS → bool
Whether the app runs on iOS.
final
isLinux → bool
Whether the app runs on Linux.
final
isMacOS → bool
Whether the app runs on macOS.
final
isWeb → bool
Whether the app runs in a browser.
final
isWindows → bool
Whether the app runs on Windows.
final
key → String
A canonical platform key used to look up download URLs in remote metadata: web, android, ios, windows, macos, linux.
no setter
needsDownloadUrl → bool
Whether updates must go through a direct download URL (desktop/web).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited