text property

String get text

Gets the text content of the message.

Implementation

String get text =>
    content.whereType<TextMessageContent>().map((c) => c.text.value).join();