PlayxPlatform class
Utility class for determining the current platform type and characteristics.
Constructors
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
trueif the platform is Android.no setter - isCupertino → bool
-
Returns
trueif the platform is either iOS or macOS.no setter - isDesktop → bool
-
Returns
trueif the platform is either Windows, Linux, or macOS.no setter - isFuchsia → bool
-
Returns
trueif the platform is Fuchsia.no setter - isIOS → bool
-
Returns
trueif the platform is iOS.no setter - isLinux → bool
-
Returns
trueif the platform is Linux.no setter - isMacOS → bool
-
Returns
trueif the platform is macOS.no setter - isMaterial → bool
-
Returns
trueif the platform is either Android, web, Fuchsia, Windows, or Linux.no setter - isMobile → bool
-
Returns
trueif the platform is either Android or iOS.no setter - isWasm → bool
-
Returns
trueif the platform is WebAssembly.no setter - isWeb → bool
-
Returns
trueif the platform is the web.no setter - isWindows → bool
-
Returns
trueif the platform is Windows.no setter