render method
Renders the component as a string.
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';
}