render method
Renders the component as a string.
Implementation
@override
String render() {
final prefix = _prefix ?? _defaultPrefix;
final lines = _message.split('\n');
return switch (_displayStyle) {
AlertDisplayStyle.inline => _renderInline(prefix, lines),
AlertDisplayStyle.block => _renderBlock(prefix, lines),
AlertDisplayStyle.large => _renderLarge(prefix, lines),
};
}