PlayxPlatform class

Utility class for determining the current platform type and characteristics.

Constructors

PlayxPlatform()

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

Static Properties

isAndroid → bool
Returns true if the platform is Android.
no setter
isCupertino → bool
Returns true if the platform is either iOS or macOS.
no setter
isDesktop → bool
Returns true if the platform is either Windows, Linux, or macOS.
no setter
isFuchsia → bool
Returns true if the platform is Fuchsia.
no setter
isIOS → bool
Returns true if the platform is iOS.
no setter
isLinux → bool
Returns true if the platform is Linux.
no setter
isMacOS → bool
Returns true if the platform is macOS.
no setter
isMaterial → bool
Returns true if the platform is either Android, web, Fuchsia, Windows, or Linux.
no setter
isMobile → bool
Returns true if the platform is either Android or iOS.
no setter
isWasm → bool
Returns true if the platform is WebAssembly.
no setter
isWeb → bool
Returns true if the platform is the web.
no setter
isWindows → bool
Returns true if the platform is Windows.
no setter