toIterable method

Iterable<T> toIterable()

Convert this iterator into an Iterable.

Implementation

Iterable<T> toIterable() sync* {
  while (moveNext()) {
    yield current;
  }
}