replacePreviousLine static method

String replacePreviousLine(
  1. dynamic str
)

Use moveUp, concatenate your string (str) and then blank the remaining line.

Implementation

static String replacePreviousLine(str) => moveUp(1) + str + blankRemaining();