StreamIterator<T> 构造函数

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

stream 上创建一个 StreamIterator

实现

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