StreamTransformations<T> extension
Additional stream transformations not covered by the official Dart RateLimit extension.
- on
-
- Stream<
T>
- Stream<
Methods
-
asPausable(
) → PausableStream< T> -
Available on Stream<
Returns a pausable version of this stream.T> , provided by the StreamTransformations extension -
bufferCount(
int count) → Stream< List< T> > -
Available on Stream<
Buffers incoming events into lists of sizeT> , provided by the StreamTransformations extensioncount. -
rateLimit(
int maxEvents, Duration duration) → Stream< T> -
Available on Stream<
Limits the rate of event emissions, allowing at mostT> , provided by the StreamTransformations extensionmaxEventsduring eachdurationwindow. -
window(
Duration windowDuration) → Stream< List< T> > -
Available on Stream<
Buffers events into time-based windows defined byT> , provided by the StreamTransformations extensionwindowDuration. -
withLatestValue(
) → Stream< T> -
Available on Stream<
Returns a stream that replays the latest emitted value to new subscribers.T> , provided by the StreamTransformations extension