dart / 2 / dart-async / streamiterator / streamiterator.html

StreamIterator<T> constructor

StreamIterator<T>(
  1. Stream<T> stream
)

Create a StreamIterator on stream.

Implementation

factory StreamIterator(Stream<T> stream) =>
    // TODO(lrn): use redirecting factory constructor when type
    // arguments are supported.
    new _StreamIterator<T>(stream);

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-async/StreamIterator/StreamIterator.html