StreamStateError class

State when the stream encountered an error during generation.

The UI might display the partial text along with an error indicator, or transition to a TextMessage indicating the error.

Inheritance

Constructors

StreamStateError.new(Object error, {String? accumulatedText})
Creates a StreamStateError.
const

Properties

accumulatedText String?
Text accumulated before the error occurred (optional).
final
error Object
The error object that caused the stream to fail.
final
hashCode int
The hash code for this object.
no setterinherited
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