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

Properties

int exitCode
read-only
Exit code for the process.
int pid
read-only
Process id of the process.
dynamic stderr
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`.
dynamic stdout
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)