StreamProvider class abstract

A professional interface for handling streaming data in AI applications.

This provider manages the streaming of text, tool calls, and other data from AI models in a clean, efficient manner.

Implementers
Annotations
  • @Deprecated('Not wired to any widget; pass a Stream<String> to ' 'StreamingTextMarkdown.stream. Removed in 2.0.')

Constructors

StreamProvider()
Const constructor for subclasses.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
Disposes of the provider and releases resources.
initialize() → Future<void>
Initializes the stream with optional configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseStream() → Future<void>
Pauses the current stream.
resumeStream() → Future<void>
Resumes a paused stream.
startStream(String input) → Stream<StreamData>
Starts streaming data with the given input.
stopStream() → Future<void>
Stops the current stream and cleans up resources.
toString() → String
A string representation of this object.
inherited

Operators

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