text property

String get text

The text content of the response chunk.

Implementation

String get text {
  final buffer = StringBuffer();
  for (final part in content) {
    if (part.isText) {
      buffer.write(part.text);
    }
  }
  return buffer.toString();
}