DartInteraction class abstract

Helper class for interacting with Dart and Flutter

Constructors

DartInteraction()

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

runDartCommand({String? workingDirectory, List<String> args = const [], StdoutSession? stdoutSession}) Future<String>
runs the dart command with the given args. If workingDirectory is given then this directory will be passed to the Process as working directory
runDartOrFlutterCommand(String forDirectory, {List<String> args = const [], StdoutSession? stdoutSession}) Future
runs the dart or flutter command with the given args. The decision which command to run is taken from the pubspeck.yaml file in forDirectory