StreamPacing class sealed

How a RevealMode-driven reveal paces a Stream<String> (or static text) source (DESIGN.md 4.3).

Construct via StreamPacing.catchUp or StreamPacing.fixed. When left null, Stream<String> input defaults to StreamPacing.catchUp and static text input defaults to StreamPacing.fixed using the widget's own typingSpeed.

Constructors

StreamPacing.catchUp({Duration window, double k, double floorCharsPerSecond, Duration drainWithin})
Backlog-proportional catch-up pacing (the sibling chat UI's factor): smooths bursty token arrivals instead of draining them one fixed unit per tick. See CatchUpPacer in lib/src/engine/reveal_pacer.dart for the exact contract; the parameters here are forwarded to it.
const
factory
StreamPacing.fixed(Duration typingSpeed)
Reveals exactly one unit every typingSpeed — the pre-2.0 behaviour.
const
factory

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

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