render method
Renders the component as a styled string.
Subclasses implement this to produce their ANSI-styled output.
Implementation
@override
String render() {
final exceptionType = exception.runtimeType.toString();
final message = exception.toString().split('\n').first;
final style = renderConfig.configureStyle(
Style().foreground(Colors.error).bold(),
);
return '${style.render('[$exceptionType]')} $message';
}