draw method

void draw()

Implementation

void draw() {
  Console.eraseDisplay(2);
  var width = Console.columns;
  Console.moveCursor(row: 1, column: 1);
  Console.setBackgroundColor(7, bright: true);
  _repeatFunction((i) => Console.write(' '), width);
  Console.setTextColor(0);
  Console.moveCursor(
    row: 1,
    column: (Console.columns / 2).round() - (title.length / 2).round(),
  );
  Console.write(title);
  _repeatFunction((i) => Console.write('\n'), Console.rows - 1);
  Console.moveCursor(row: 2, column: 1);
  Console.centerCursor(row: true);
  Console.resetBackgroundColor();
}