text property

String get text

Gets concatenated text from the last message's TextContent items.

Implementation

String get text {
  if (messages.isEmpty) return '';
  return messages.last.text;
}