WindowTestStreamTransformer<T> class

Creates an Observable where each item is a Stream containing the items from the source sequence, batched whenever test passes.

Example

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

Constructors

WindowTestStreamTransformer(bool test(T value))
Constructs a StreamTransformer which buffers events into a Stream and emits this Stream whenever the test Function yields true.

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