text property

String text
latefinal

Extracts and concatenates all text content from TextPart instances.

Returns a single string with all text content concatenated together without any separators. Empty text parts are included in the result.

Implementation

late final String text = whereType<TextPart>().map((p) => p.text).join();