append method

ChatTextBudgetChunk append(
  1. String chunk
)

Implementation

ChatTextBudgetChunk append(String chunk) {
  if (_finished) {
    throw StateError('Cannot append after the text budget is finished.');
  }
  if (_omitted) return _emptyChunk();
  return _consume(chunk, finish: false);
}