Buffers a number of values from the source Stream by count then emits the
buffer as a
Stream and clears it, and starts a new buffer each
startBufferEvery values. If startBufferEvery is not provided, then new
buffers are started immediately at the start of the source and when each
buffer closes and is emitted.
count is the maximum size of the buffer emitted
Rx.range(1, 4) .windowCount(2) .asyncMap((stream) => stream.toList()) .listen(print); // prints [1, 2], [3, 4] done!
if startBufferEvery is 2, then a new buffer will be started on every other value from the source. A new buffer is started at the beginning of the source by default.
Rx.range(1, 5) .bufferCount(3, 2) .listen(print); // prints [1, 2, 3], [3, 4, 5],  done!
T, Stream< T>>
→ bool Function(List<
Predicate which determines when the current window should close
- dispatchOnClose → bool
Toggle to prevent, or allow the final set of events to be dispatched
when the source
- hashCode → int
The hash code for this object. [...]
- ignoreEmptyWindows → bool
Toggle to prevent, or allow windows that contain
no events to be dispatched
- maxLengthQueue → int
Maximum length of the buffer.
Specify this value to avoid running out of memory when adding too many events to the buffer.
null, maximum length of the buffer is unlimited.final, inherited
Handler which fires when the window closes
Handler which fires when the window opens
- runtimeType → Type
A representation of the runtime type of the object.
- startBufferEvery → int
Used to skip an amount of events
- strategy → WindowStrategy
Determines how the window is created
- windowStreamFactory → Stream Function(T event)
Factory method used to create the
Streamwhich will be bufferedfinal, inherited
Stream< T>stream) → Stream< Stream< T>>
Transforms the provided
RS, RT>( ) → StreamTransformer< RS, RT>
StreamTransformer<RS, RT>view of this stream transformer. [...]inherited
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.