Progress constructor

Progress(
  1. LineAction stdout, {
  2. LineAction stderr = devNull,
  3. bool captureStdout = false,
  4. bool captureStderr = false,
  5. Encoding encoding = utf8,
})

Creates a Progress that allows you to individually control what output is sent to each of the LineActions and what is captured to the lines array. You must provide a stdout LineAction but stderr are sent to devNull unless you pass a stderr LineAction By default no output is captured to the lines array unless you set captureStdout or captureStderr to true. Use encoding to control how output bytes are decoded into strings.

Implementation

factory Progress(LineAction stdout,
        {LineAction stderr = devNull,
        bool captureStdout = false,
        bool captureStderr = false,
        Encoding encoding = utf8}) =>
    ProgressBothImpl(stdout,
        stderr: stderr,
        captureStdout: captureStdout,
        captureStderr: captureStderr,
        encoding: encoding);