append method

void append(
  1. String text
)

Appends additional text to the existing message content.

This is typically used for LLM messages that are streamed in parts.

Implementation

void append(String text) => this.text = (this.text ?? '') + text;