Dart class

Utility tasks for for getting information about the Dart VM and for running Dart applications.

The custom named parameters (e.g. vmNewGenHeapMB) will override args set in vmArgs.

Constructors

Dart()

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 Methods

run(String script, {List<String> arguments = const [], bool quiet = false, String? packageRoot, RunOptions? runOptions, String? workingDirectory, List<String> vmArgs = const []}) String
Run a dart script using runlib.run. Returns the stdout.
runAsync(String script, {List<String> arguments = const [], bool quiet = false, String? packageRoot, RunOptions? runOptions, List<String> vmArgs = const []}) Future<String>
version({bool quiet = false}) String