AppPlatform class

A utility class to determine the current platform the app is running on. This is the default implementation for non-web platforms.

Constructors

AppPlatform()

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
Whether the app is running on Android.
getter/setter pair
isDesktop bool
Whether the app is running on a desktop platform (macOS, Windows, or Linux).
getter/setter pair
isFuchsia bool
Whether the app is running on Fuchsia.
getter/setter pair
isIOS bool
Whether the app is running on iOS.
getter/setter pair
isLinux bool
Whether the app is running on Linux.
getter/setter pair
isMacOS bool
Whether the app is running on macOS.
getter/setter pair
isPhone bool
Whether the app is running on a mobile platform (Android, iOS, or Fuchsia).
getter/setter pair
isWeb bool
Whether the app is running on the Web.
getter/setter pair
isWindows bool
Whether the app is running on Windows.
getter/setter pair