StreamConfig class

Professional configuration for stream providers.

Constructors

StreamConfig({int maxChunkSize = 10, int chunkDelay = 50, bool includeMetadata = true, int retryAttempts = 3, Duration retryDelay = const Duration(seconds: 1), Duration timeoutDuration = const Duration(seconds: 30), Map<String, dynamic>? options})
Creates a new StreamConfig instance.
const

Properties

chunkDelay → int
The delay between chunks in milliseconds.
final
hashCode → int
The hash code for this object.
no setterinherited
includeMetadata → bool
Whether to include metadata in the stream.
final
maxChunkSize → int
The maximum chunk size for text streaming.
final
options → Map<String, dynamic>?
Custom configuration options.
final
retryAttempts → int
Number of retry attempts for failed streams.
final
retryDelay → Duration
Delay between retry attempts.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeoutDuration → Duration
Timeout duration for the stream.
final

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