ProcessResult represents the result of running a non-interactive process started with Process.run or Process.runSync.

Properties

exitCode int
read-only

Exit code for the process.

pid int
read-only

Process id of the process.

stderr → dynamic
read-only

Standard error from the process. The value used for the stderrEncoding argument to Process.run determines the type. If null was used this value is of type List<int> otherwise it is of type String`.

stdout → dynamic
read-only

Standard output from the process. The value used for the stdoutEncoding argument to Process.run determines the type. If null was used this value is of type List<int> otherwise it is of type String`.

Constructors

ProcessResult(int pid, int exitCode, stdout, stderr)