flattened property

Iterable<T> get flattened

The sequential elements of each iterable in this iterable.

Iterates the elements of this iterable. For each one, which is itself an iterable, all the elements of that are emitted on the returned iterable, before moving on to the next element.

Implementation

Iterable<T> get flattened sync* {
  for (var elements in this) {
    yield* elements;
  }
}