AppPlatformInfo class

Object encapsulating information about the platform for which the app was built.

Properties

device BaseDeviceInfo
Object encapsulating the device information. Depending on the current platform, this property can be downcast to AndroidDeviceInfo, IosDeviceInfo, LinuxDeviceInfo, MacOsDeviceInfo, WebBrowserInfo, or WindowsDeviceInfo,
latefinal
deviceJson Map<String, dynamic>
JSON-encodable version of BaseDeviceInfo.data - valid for all device types. Although BaseDeviceInfo.data is not guaranteed to be JSON-encodable per documentation, this version protects the json encoding ands defaults to string representation if not encodable
latefinal
environment Map<String, String>
The environment for this process as a map from string key to string value (see Platform.environment)
final
executable String
The environment for this process as a map from string key to string value (see Platform.executable)
final
executableArguments List<String>
These are the command-line flags to the executable that precedes the script name. Provides a new list every time the value is read (see Platform.executableArguments)
final
hashCode int
The hash code for this object.
no setterinherited
isAndroid bool
Indicates application was compiled to run on Android (see Platform.isAndroid)
final
isDesktop bool
Indicates application was compiled to run on a desktop platform
final
isFuchsia bool
Indicates application was compiled to run on Fuchsia (see Platform.isFuchsia)
final
isIOS bool
Indicates application was compiled to run on iOS (see Platform.isIOS)
final
isLinux bool
Indicates application was compiled to run on Linux (see Platform.isLinux)
final
isMacOS bool
Indicates application was compiled to run on MacOS (see Platform.isMacOS)
final
isMobile bool
Indicates application was compiled to run on a mobile platform
final
isWeb bool
Indicates application was compiled to run on the web
final
isWindows bool
Indicates application was compiled to run on Windows (see Platform.isWindows)
final
localeName String
Get the name of the current locale (see Platform.localeName)
final
localHostname String
The local hostname for the system (see Platform.localHostname)
final
numberOfProcessors int
The number of individual execution units of the machine (see Platform.numberOfProcessors)
final
operatingSystem String
A string representing the version of the operating system or platform (see Platform.operatingSystem)
final
operatingSystemVersion String
A string representing the version of the operating system or platform (see Platform.operatingSystemVersion)
final
packageConfig String
The --packages flag passed to the executable used to run the script in this isolate (see Platform.packageConfig)
final
pathSeparator String
The path separator used by the operating system to separate components in file paths (see Platform.pathSeparator)
final
resolvedExecutable String
The path of the executable used to run the script in this isolate after it has been resolved by the OS (see Platform.resolvedExecutable)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script Uri
The absolute URI of the script being run in this isolate (see Platform.script)
final
version String
The version of the current Dart runtime. (see Platform.version)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prettyPrint() → void
Pretty print the JSON representation of the informational object
inherited
toJson() Map<String, dynamic>
Represent results as JSON map
toString() String
A string representation of this object.
inherited

Operators

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