render method
Renders the component as a styled string.
Subclasses implement this to produce their ANSI-styled output.
Implementation
@override
String render() {
final prefix = _prefix ?? _defaultPrefix;
final lines = _message.split('\n');
return switch (_displayStyle) {
StyledBlockDisplayStyle.inline => _renderInline(prefix, lines),
StyledBlockDisplayStyle.fullWidth => _renderFullWidth(prefix, lines),
StyledBlockDisplayStyle.bordered => _renderBordered(prefix, lines),
};
}