AnsiProgress constructor

AnsiProgress(
  1. Ansi ansi,
  2. String message
)

Implementation

AnsiProgress(this.ansi, String message) : super(message) {
  io.stdout.write('${message}...  '.padRight(40));

  _timer = Timer.periodic(Duration(milliseconds: 80), (t) {
    _index++;
    _updateDisplay();
  });

  _updateDisplay();
}