concat function

List concat(
  1. List lists
)

Implementation

List concat(List lists) {
  var ret = [];
  for (var item in lists) {
    if (item is Iterable) {
      ret.addAll(item);
    } else {
      ret.add(item);
    }
  }
  return ret;
}