SkipUntilStreamTransformer<S, T> class

Starts emitting events only after the given stream emits an event.

Example

MergeStream([
  Stream.value(1),
  TimerStream(2, Duration(minutes: 2))
])
.transform(SkipUntilStreamTransformer(TimerStream(1, Duration(minutes: 1))))
.listen(print); // prints 2;
Inheritance

Constructors

SkipUntilStreamTransformer(Stream<T> otherStream)
Constructs a StreamTransformer which starts emitting events only after otherStream emits an event.

Properties

hashCode int
The hash code for this object.
no setterinherited
otherStream Stream<T>
The Stream which is required to emit first, before this Stream starts emitting
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Stream<S> stream) Stream<S>
Transforms the provided stream.
override
cast<RS, RT>() StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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