flatMap<T, R> static method

List<R> Function(Iterable<T>) flatMap<T, R>(
  1. Iterable<R> mapper(
    1. T
    )
)

Implementation

static List<R> Function(Iterable<T>) flatMap<T, R>(
    Iterable<R> Function(T) mapper) {
  return (Iterable<T> items) {
    return items.expand(mapper).toList();
  };
}