start static method

Future<Process> start(
  1. String command,
  2. List<String> args, {
  3. String? workingDirectory,
})

Implementation

static Future<Process> start(
  String command,
  List<String> args, {
  String? workingDirectory,
}) => Process.start(
  Platform.environment['SHELL'] ?? '/bin/bash',
  [
    '-lc',
    [
      shellEscape(expandPath(command)),
      ...args.map((a) => shellEscape(expandPath(a))),
    ].join(' '),
  ],
  workingDirectory: workingDirectory,
);