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