flatMap function

List flatMap(
  1. List list,
  2. dynamic iteratee
)

Implementation

List flatMap(List list, dynamic iteratee) =>
    flatten(list.map((element) => iteratee(element)).toList());