clear static method

void clear()

clear method is used to clear the console screen.

Implementation

static void clear() {
  // if (Platform.isWindows) {
  //   Process.runSync('cls', [], runInShell: true);
  // } else {
  //   stdout.write('\x1B[2J\x1B[0;0H');
  // }
  console.clearScreen();
}