StreamIterator class - dart:async library (original) (raw)
An Iterator-like interface for the values of a Stream.
This wraps a Stream and a subscription on the stream. It listens on the stream, and completes the future returned by moveNext when the next value becomes available.
The stream may be paused between calls to moveNext.
The current value must only be used after a future returned by moveNexthas completed with true, and only until moveNext is called again.
Constructors
StreamIterator(Stream<T> stream)
Create a StreamIterator on stream.
factory
Properties
current → T
The current value of the stream.
no setter
The hash code for this object.
no setterinherited
A representation of the runtime type of the object.
no setterinherited
Methods
Cancels the stream iterator (and the underlying stream subscription) early.
Wait for the next stream value to be available.
noSuchMethod(Invocation invocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
A string representation of this object.
inherited
Operators
operator ==(Object other)→ bool
The equality operator.
inherited