progress method

  1. @override
Progress progress(
  1. String message
)
override

Start an indeterminate progress display.

Implementation

@override
Progress progress(String message) {
  if (_currentProgress != null) {
    var progress = _currentProgress!;
    _currentProgress = null;
    progress.cancel();
  }

  var progress = ansi.useAnsi
      ? AnsiProgress(ansi, message)
      : SimpleProgress(this, message);
  _currentProgress = progress;
  return progress;
}