discontinuedPackage dart_console2 has been discontinued and replaced by dart_console.

eraseCursorToEnd method

void eraseCursorToEnd()

Erases the current line from the cursor to the end of the line.

Implementation

void eraseCursorToEnd() => stdout.write(ansiEraseCursorToEnd);