DefaultStreamProvider class

A professional default implementation of StreamProvider.

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

Constructors

DefaultStreamProvider({StreamConfig? config})
Creates a new DefaultStreamProvider instance.

Properties

config → StreamConfig
The configuration for this provider.
final
hashCode → int
The hash code for this object.
no setterinherited
isPaused → bool
Whether the stream is currently paused.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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