textContent property

String get textContent

Convenience: extract all text from content blocks.

Implementation

String get textContent =>
    content.whereType<TextBlock>().map((b) => b.text).join('\n');