flatMap<R> method
Maps each element to an Iterable and flattens the result.
['hello', 'world'].flatMap((s) => s.split(''))
// ['h','e','l','l','o','w','o','r','l','d']
Implementation
Iterable<R> flatMap<R>(Iterable<R> Function(T) f) => expand(f);