text property

String get text

The words of every ToolText, one per line.

Implementation

String get text =>
    content.whereType<ToolText>().map((t) => t.text).join('\n');