WindowStreamTransformer<T> class

Creates an Observable where each item is a Stream containing the items from the source sequence.

This List is emitted every time the window Stream emits an event.

Example

new Observable.periodic(const Duration(milliseconds: 100), (i) => i)
  .window(new Stream.periodic(const Duration(milliseconds: 160), (i) => i))
  .asyncMap((stream) => stream.toList())
  .listen(print); // prints [0, 1] [2, 3] [4, 5] ...
Inheritance

Constructors

WindowStreamTransformer(Stream window(T event))
Constructs a StreamTransformer which buffers events into a Stream and emits this Stream whenever window fires an event. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

bind(Stream<T> stream) Stream<Stream<T>>
Transforms the provided stream. [...]
inherited
cast<RS, RT>() StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited