Progress.capture constructor

Progress.capture({
  1. bool captureStdout = true,
  2. bool captureStderr = true,
})

Captures the output of the called process to a list which can be obtained by calling Progress.lines once the process completes. By default both stdout and stderr are captured. Set captureStdout to false to suppress capturing of stdout. Set captureStderr to false to suppress capturing of stderr.

Implementation

Progress.capture({bool captureStdout = true, bool captureStderr = true})
    : _captureStdout = captureStdout,
      _captureStderr = captureStderr,
      _includeStdout = false,
      _includeStderr = false {
  _wireStreams(devNull, devNull);
}