TaskPlatform class final
The current process platform, including its ABI (not the host CPU's ABI).
Constructors
- TaskPlatform({required String operatingSystem, required String architecture, String? version, String? gpu, bool simulator = false, BrowserEngine? browserEngine})
-
Construct a platform snapshot. A null OS version means it is unknown.
const
Properties
- architecture → String
-
Process architecture, e.g.
arm64orx64.final - browserEngine → BrowserEngine?
-
The browser's engine on the web, read from its user agent; null on
native platforms and in a browser it does not recognize.
final
- gpu → String?
-
The GPU's OpenGL ES renderer and vendor where an adapter names them (the
Android vision adapter does), e.g.
Mali-G715 (ARM); null when unknown. A task that fails on one GPU family can then declare it unsupported.final - hashCode → int
-
The hash code for this object.
no setterinherited
- operatingSystem → String
-
Dart operating system name, or
weboutside native platforms.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- simulator → bool
-
Whether this process runs in Apple's iOS Simulator rather than on a
device. The target is still
ios/arm64, but a GPU path can differ.final - target → String
-
operatingSystem/architecture, the key used by runtime target tables.no setter - version → String?
-
Product version such as
14.0, rather than the Darwin kernel version.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited