WindowStreamTransformer<T> constructor
WindowStreamTransformer<T> (
- Stream window(
- T event
Constructs a StreamTransformer which buffers events into a Stream and
emits this Stream whenever window
fires an event.
The Stream is recreated and starts empty upon every window
event.
Implementation
WindowStreamTransformer(Stream Function(T event) window)
: super(WindowStrategy.firstEventOnly, window,
onWindowEnd: (queue) => Stream.fromIterable(queue),
ignoreEmptyWindows: false);