render method
Renders the component as a string.
Implementation
@override
String render() {
final style = renderConfig.configureStyle(Style());
final output = switch (_type) {
_StyleType.info => style.foreground(Colors.info).render(text),
_StyleType.success => style.foreground(Colors.success).render(text),
_StyleType.warning =>
style.foreground(Colors.warning).bold().render(text),
_StyleType.error => style.foreground(Colors.error).render(text),
_StyleType.muted => style.dim().render(text),
_StyleType.emphasize =>
style.foreground(Colors.warning).bold().render(text),
_StyleType.heading => style.bold().render(text),
};
return output;
}