runDartCommand static method
Future<String>
runDartCommand({
- String? workingDirectory,
- List<
String> args = const [], - StdoutSession? stdoutSession,
runs the dart command with the given args
.
If workingDirectory
is given then this directory will be passed to the
Process as working directory
Implementation
static Future<String> runDartCommand({
String? workingDirectory,
List<String> args = const [],
StdoutSession? stdoutSession,
}) {
return _runDartOrFlutterCommand(_getDartExecutablePath(),
args: args,
workingDirectory: workingDirectory,
stdoutSession: stdoutSession);
}