TextAttachment class

A plain-text file attached to a turn. Binary files are not supported by the anonymous flow; extract text in your app first.

Constructors

TextAttachment({required String name, required String content})
Creates an attachment.
const

Properties

content String
The file's text content.
final
hashCode int
The hash code for this object.
no setterinherited
name String
File name, shown to the model for context.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited