BufferTestStreamTransformer<T> class
Creates an Observable where each item is a List
containing the items
from the source sequence, batched whenever test passes.
Example
new Observable.periodic(const Duration(milliseconds: 100), (int i) => i)
.bufferTest((i) => i % 2 == 0)
.listen(print); // prints [0], [1, 2] [3, 4] [5, 6] ...
Constructors
- BufferTestStreamTransformer(bool test(T value))
-
Constructs a
StreamTransformer
which buffers events into aList
and emits thisList
whenever thetest
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<List< 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 ==(
dynamic other) → bool -
The equality operator.
inherited