Progress constructor

Progress(
  1. LineAction stdout, {
  2. LineAction stderr = devNull,
  3. bool captureStdin = false,
  4. bool captureStderr = false,
})

Creates a Progress that allows you to individually control each aspect of how the Progress prints and captures output to stdout and stderr. It usually easier to use one of the pre-package Progress constructors such as Progress.print.

Implementation

Progress(
  LineAction stdout, {
  LineAction stderr = devNull,
  bool captureStdin = false,
  bool captureStderr = false,
})  : _includeStdout = stdout != devNull,
      _includeStderr = stderr != devNull,
      _captureStdout = captureStdin,
      _captureStderr = captureStderr {
  _wireStreams(stdout, stderr);
}