progress method

Progress progress(
  1. String message, {
  2. ProgressOptions? options,
})

Starts a spinner line with message; end it with Progress.complete, Progress.fail or Progress.cancel.

It runs on a timer and never reads stdin, enters raw mode or catches signals, so Ctrl+C stops the process as in any CLI.

Implementation

Progress progress(String message, {ProgressOptions? options}) =>
    Progress._(this, message, options ?? progressOptions);