render method
Renders the component as a string.
Implementation
@override
String render() {
final displayText = text ?? url;
if (renderConfig.colorProfile == ColorProfile.ascii) {
return displayText;
}
final params = id != null ? 'id=$id' : '';
final linkText = '\x1B]8;$params;$url\x07$displayText\x1B]8;;\x07';
if (styled) {
// Apply underline and blue color
return '\x1B[4;34m$linkText\x1B[0m';
}
return linkText;
}