Runtime class final

An enum of all Dart runtimes supported by the test runner.

Constructors

Runtime(String name, String identifier, Compiler defaultCompiler, List<Compiler> supportedCompilers, {bool isDartVM = false, bool isBrowser = false, bool isBlink = false, bool isHeadless = false})
const
Runtime.deserialize(Object serialized)
Converts a JSON-safe representation generated by serialize back into a Runtime.
factory

Properties

defaultCompiler → Compiler
The default compiler to use with this runtime.
final
hashCode → int
The hash code for this object.
no setterinherited
identifier → String
The identifier used to look up the platform.
final
Whether this platform uses the Blink rendering engine.
final
isBrowser → bool
Whether this platform is a browser.
final
isChild → bool
Returns whether this is a child of another platform.
no setter
isDartVM → bool
Whether this platform runs the Dart VM in any capacity.
final
isHeadless → bool
Whether this platform has no visible window.
final
name → String
The human-friendly name of the platform.
final
parent → Runtime?
The parent platform that this is based on, or null if there is no parent.
final
root → Runtime
Returns the platform this is based on, or this if it's not based on anything.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportedCompilers → List<Compiler>
All the supported compilers for this runtime.
final

Methods

extend(String name, String identifier) → Runtime
Returns a child of this that counts as both this platform's identifier and the new identifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() → Object
Converts this into a JSON-safe object that can be converted back to a Runtime using Runtime.deserialize.
toString() → String
A string representation of this object.
override

Operators

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

Constants

builtIn → const List<Runtime>
The platforms that are supported by the test runner by default.
chrome → const Runtime
Google Chrome.
edge → const Runtime
Microsoft Edge (based on Chromium).
firefox → const Runtime
Mozilla Firefox.
internetExplorer → const Runtime
Microsoft Internet Explorer.
nodeJS → const Runtime
The command-line Node.js VM.
safari → const Runtime
Apple Safari.
vm → const Runtime
The command-line Dart VM.
vmAsan → const Runtime
vmMsan → const Runtime
vmTsan → const Runtime