runDartCommand static method

Future<String> runDartCommand({
  1. String? workingDirectory,
  2. List<String> args = const [],
  3. 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);
}