write_line abstract method

void write_line([
  1. String? text,
  2. ConsoleTextAlignment alignment
])

Writes a line to the console, optionally with alignment provided by the ConsoleTextAlignment enumeration.

If no parameters are supplied, the command simply writes a new line to the console. By default, text is left aligned.

Text alignment operates based off the current window width, and pads the remaining characters with a space character.

Implementation

void write_line([
  final String? text,
  final ConsoleTextAlignment alignment,
]);