textContent property

List<String> get textContent

Get only text content from all messages.

Implementation

List<String> get textContent {
  return messages
      .where((m) => m.text != null)
      .map((m) => m.text!)
      .toList();
}