BufferStreamTransformer<T> constructor

BufferStreamTransformer<T>(
  1. Stream<void> window(
    1. T event
    )
)

Constructs a StreamTransformer which buffers events into a List and emits this List whenever window fires an event.

The List is cleared upon every window event.

Implementation

BufferStreamTransformer(Stream<void> Function(T event) window)
    : super(WindowStrategy.firstEventOnly, window,
          onWindowEnd: (queue) => queue, ignoreEmptyWindows: false);