writeMessage static method

dynamic writeMessage(
  1. String message,
  2. List frames,
  3. int index, {
  4. required MessageSeverity severity,
})

Implementation

static writeMessage(String message, List<dynamic> frames, int index,
    {required MessageSeverity severity}) {
  stdout.write(
    '${ansiEscapes.eraseLine}\r${_ansiColor(frames[index], severity: severity)} '
    '${_ansiColor(message, severity: severity)} ${ansiEscapes.cursorHide}',
  );
}