update method

void update(
  1. String message
)

Says message while the operation goes on: shown in place of the last one where it is live, written as a line on a terminal that does not redraw where it is not the one written last, kept for the closing line where the output is no terminal.

Implementation

void update(String message) {
  if (_done) {
    return;
  }
  _message = message;
  switch (_look) {
    case _Look.live:
      _live?.update(_view());
    case _Look.lines:
      _writeMessage(message);
    case _Look.outcome:
      break;
  }
}