Progress.capture constructor
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);
}