render method
Renders the view to the terminal.
view is the string representation of the current UI state,
or a View object containing metadata.
Implementation
@override
void render(Object view) {
final String content = switch (view) {
String s => s,
View v => v.content,
_ => view.toString(),
};
final output = _options.ansiCompress ? compressAnsi(content) : content;
terminal.writeln(output);
}