PanaProcessResult constructor

PanaProcessResult(
  1. int pid,
  2. int exitCode,
  3. Object stdout,
  4. Object stderr, {
  5. bool wasTimeout = false,
  6. bool wasOutputExceeded = false,
  7. bool wasError = false,
  8. Encoding? encoding,
})

Implementation

PanaProcessResult(
  this.pid,
  this.exitCode,
  Object stdout,
  Object stderr, {
  this.wasTimeout = false,
  this.wasOutputExceeded = false,
  bool wasError = false,
  Encoding? encoding,
})  : _wasError = wasError,
      stdout = stdout is ProcessOutput
          ? stdout
          : ProcessOutput.from(stdout, encoding: encoding),
      stderr = stderr is ProcessOutput
          ? stderr
          : ProcessOutput.from(stderr, encoding: encoding);