flatMap<R> method
Returns a single Iterable of all elements yielded from results of
transform
function being invoked on each element of original collection.
Implementation
Iterable<R> flatMap<R>(Iterable<R> Function(E element) transform) =>
map(transform).flatten;