StreamIterator abstract class
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.
Constructors
- StreamIterator(Stream<T> stream) factory
-
Create a StreamIterator on
stream
.
Properties
- current → T read-only
-
The current value of the stream.
- hashCode → int read-only, inherited
-
The hash code for this object.
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- cancel(
) → Future -
Cancels the stream iterator (and the underlying stream subscription) early.
- moveNext(
) → Future<bool> -
Wait for the next stream value to be available.
- noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- toString(
) → String inherited -
Returns a string representation of this object.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-async/StreamIterator-class.html