runProcess static method

dynamic runProcess(
  1. String command
)

Runs a process

Implementation

static runProcess(String command) async {
  List<String> commands = command.split(" ");

  final processArguments = commands.getRange(1, commands.length).toList();
  final process = await Process.start(commands.first, processArguments,
      runInShell: false);
  await stdout.addStream(process.stdout);
  await stderr.addStream(process.stderr);
}