toText method
Converts the rich text to a plain text version for environments that do not support HTML (e.g., console output or text-only emails).
Links are appended in parentheses.
Implementation
@override
String toText() => children.map((span) => span.toText()).join();