DartInteraction class abstract
Helper class for interacting with Dart and Flutter
Constructors
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. IfworkingDirectoryis 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 inforDirectoryThis command determines which tool to use based on the pubspec.yaml file. IfforceUseFlutterToolis given then this value will be used to determine which tool to use.truemeans Flutter,falsemeans Dart -
transferPackageConfig(
{required String fromPackage, required String toPackage, required StdoutSession stdoutSession, ({String newPackageName, String oldPackageName})? packageNameReplacementInfo}) → Future