execAndWaitStderr method

Future<Output?> execAndWaitStderr(
  1. String command,
  2. List<String> args, {
  3. int? desiredExitCode,
})

Calls exec than waitStderr.

Implementation

Future<Output?> execAndWaitStderr(String command, List<String> args,
    {int? desiredExitCode}) async {
  var process = await exec(command, args);
  if (process == null) return null;
  return process.waitStderr(desiredExitCode: desiredExitCode);
}