toText method
Render to plain text (fallback, CLI, etc.)
Implementation
@override
String toText() {
final content = children.map((child) => child.toText()).join('\n');
if (backgroundColor != null || border != null) {
return '┌${'─' * 40}┐\n$content\n└${'─' * 40}┘';
}
return content;
}