text property

String get text

Gets concatenated text from all TextContent items.

Implementation

String get text =>
    contents.whereType<TextContent>().map((c) => c.text).join();