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, bool forceUseFlutterTool = false}) Future
runs the dart or flutter command with the given args. The decision which command to run is taken from the pubspec.yaml file in forDirectory This command determines which tool to use based on the pubspec.yaml file. If forceUseFlutterTool is given then this value will be used to determine which tool to use. true means Flutter, false means Dart