Progress.print constructor

Progress.print({
  1. bool capture = false,
  2. Encoding encoding = utf8,
})

Use this progress to print both stdout and stderr. If capture is true (defaults to false) the output to stdout and stderr is also captured and will be available in lines once the process completes. Use encoding to control how output bytes are decoded into strings.

Implementation

factory Progress.print({bool capture = false, Encoding encoding = utf8}) =>
    ProgressBothImpl(print,
        stderr: print,
        captureStdout: capture,
        captureStderr: capture,
        encoding: encoding);