flatten method

Iterable<E> flatten()

Flattens the iterable of iterables into single iterable.

Implementation

Iterable<E> flatten() sync* {
  for (var i in this) {
    yield* i;
  }
}