discontinuedPackage dart_console2 has been discontinued and replaced by dart_console.

eraseLine method

void eraseLine()

Erases all the characters in the current line.

Implementation

void eraseLine() => stdout.write(ansiEraseInLineAll);